Raise the event area on window stack changes rather

than on activate. I think activate is called only
when there is a focus change.
This commit is contained in:
Marco Pesenti Gritti 2007-09-13 12:30:37 +02:00
parent 3a4f4166f0
commit 6b04dca40e
2 changed files with 5 additions and 3 deletions

2
NEWS
View File

@ -1,3 +1,5 @@
* #2739 Make frame show on corners also after showing palettes. (marco)
Snapshot 47f473189e
* Fix typo so the removal of expanded activity bundles is complete. (tomeu)

View File

@ -48,8 +48,8 @@ class EventArea(gobject.GObject):
self._windows.append(invisible)
screen = wnck.screen_get_default()
screen.connect('active-window-changed',
self._active_window_changed_cb)
screen.connect('window-stacking-changed',
self._window_stacking_changed_cb)
def _create_invisible(self, x, y, width, height):
invisible = gtk.Invisible()
@ -101,6 +101,6 @@ class EventArea(gobject.GObject):
for window in self._windows:
window.hide()
def _active_window_changed_cb(self, screen, previous_window=None):
def _window_stacking_changed_cb(self, screen):
for window in self._windows:
window.window.raise_()