summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-10-18 21:02:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-10-18 21:02:37 +0000
commit1a8e3a7020ba57a3c1d8ab89e1fa3911ae5ac44a (patch)
treeaa0da02e253d4d9a2aaad8109922065326c29421 /gdk/x11/gdkdisplay-x11.c
parent0c4f2a0db227dc7d8dfec166feeca581fd83f33b (diff)
downloadgtk+-1a8e3a7020ba57a3c1d8ab89e1fa3911ae5ac44a.tar.gz
Fix #155658, Sebastian Bacher:
2004-10-18 Matthias Clasen <mclasen@redhat.com> Fix #155658, Sebastian Bacher: * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Add a new is_leader flag. * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set wm hints on leader windows even if they are withdrawn. (gdk_window_set_group): Mark the new leader window as such. We never remove the flag again, but that should a) be vanishingly rare and b) not a problem, since the flag just turns off an optimization. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Mark the default leader window as such.
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 54c80ade91..578864ebf0 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -198,6 +198,8 @@ gdk_display_open (const gchar *display_name)
display_x11->leader_gdk_window = gdk_window_new (GDK_SCREEN_X11 (display_x11->default_screen)->root_window,
&attr, GDK_WA_X | GDK_WA_Y);
+ (_gdk_x11_window_get_toplevel (display_x11->leader_gdk_window))->is_leader = TRUE;
+
display_x11->leader_window = GDK_WINDOW_XID (display_x11->leader_gdk_window);
display_x11->leader_window_title_set = FALSE;