dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #35094
[Bug 694224] Re: Synchronous notifications briefly steal focus
This lost-focus is not caused by notify-osd itself.
You can verify this by running Dylan's provided python-script and
triggering lp:notify-osd/examples/icon-value.py in another terminal
(with a "sleep 10" before that, so you've enough time to focus Dylan's
running python-script and its output). icon-value.py is triggering the
exact same type of notification that a regular volume-up/down would be
made of.
What's actually stealing the focus is the process handling the
multimedia-keys input. That's the media-keys-manager part (libmedia-
keys.so) of lp:gnome-settings-daemon iirc.
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to notify-osd in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/694224
Title:
Synchronous notifications briefly steal focus
Status in Canonical System Image:
Confirmed
Status in notify-osd package in Ubuntu:
Confirmed
Bug description:
It appears synchronous notifications (at least those for volume and
brightness) briefly steal focus when they appear. This is quite
problematic for games and some other applications that pause as soon
as they lose focus. The focus stealing does not happen with normal,
asynchronous notifications.
Here's a quick Python program to reproduce this:
#!/usr/bin/python
import gtk
import time
def cb (wid, ev):
evtime = time.strftime ("%H:%M:%S", time.localtime())
print ("%s: Lost focus!" % evtime)
win = gtk.Window()
win.connect ("focus-out-event", cb)
win.show_all()
gtk.main()
You could also just start playing Quadrapassel, then adjust your volume :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/694224/+subscriptions