]> Pileus Git - ~andy/gtk/commit
x11: Set GdkToplevelX11.have_focused on creation
authorRui Matos <tiagomatos@gmail.com>
Sat, 31 Mar 2012 14:01:36 +0000 (16:01 +0200)
committerRui Matos <tiagomatos@gmail.com>
Wed, 4 Apr 2012 15:14:06 +0000 (17:14 +0200)
commit987baaba5c395c08401286dd146ffed6f473629f
tree454ec32321a4d73612e2c8a9fffcc643cc2fc553
parent45a5151f940399a0d53109b9ae36e6eed27c21f7
x11: Set GdkToplevelX11.have_focused on creation

Since the order in which _NET_WM_STATE and _NET_WM_DESKTOP are set, or
even *if* they are set, isn't defined, we could end up unsetting
GDK_WINDOW_STATE_FOCUSED given that both handlers for these two X
properties end up doing window state changes for all states. As we
want GDK_WINDOW_STATE_FOCUSED to be set by default we need to set its
master flag by default as well.

https://bugzilla.gnome.org/show_bug.cgi?id=673125
gdk/x11/gdkwindow-x11.c