summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-06 10:41:28 +0200
committerDanny Baumann <dannybaumann@web.de>2009-03-08 13:12:59 +0100
commitf63bbe44da5c011f962a7c0bf24283ad25d39c8a (patch)
treef768c5b190fbd8df01642258b4c842e3c4baf286 /gtk
parent5753d15c8ed574e8057f259df3dd6a0285c7d69c (diff)
downloadzcomp-f63bbe44da5c011f962a7c0bf24283ad25d39c8a.tar.gz
zcomp-f63bbe44da5c011f962a7c0bf24283ad25d39c8a.tar.bz2
active_window_changed only updates d->active if decorations are present, so setting d->active before creating decorations may lead to incorrect results.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index b34c06e..3b284a4 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -3549,6 +3549,8 @@ add_frame_window (WnckWindow *win,
xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
+ d->active = wnck_window_is_active (win);
+
attr.event_mask = ButtonPressMask | EnterWindowMask | LeaveWindowMask;
attr.override_redirect = TRUE;
@@ -4021,8 +4023,6 @@ window_opened (WnckScreen *screen,
&d->client_width,
&d->client_height);
- d->active = wnck_window_is_active (win);
-
d->draw = theme_draw_window_decoration;
g_object_set_data (G_OBJECT (win), "decor", d);