fix to use constants not atoms.

2001-07-02  Havoc Pennington  <hp@pobox.com>

	* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
	use constants not atoms.
This commit is contained in:
Havoc Pennington 2001-07-03 01:39:36 +00:00 committed by Havoc Pennington
parent 84191d675f
commit b6cc525fa0
8 changed files with 39 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1,3 +1,8 @@
2001-07-02 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
use constants not atoms.
2001-07-02 James Henstridge <james@daa.com.au>
* gtk/gtktextview.c (gtk_text_view_class_init): same here for

View File

@ -1268,12 +1268,10 @@ gdk_wmspec_change_state (gboolean add,
GdkAtom state2)
{
XEvent xev;
Atom op;
if (add)
op = gdk_atom_intern ("_NET_WM_STATE_ADD", FALSE);
else
op = gdk_atom_intern ("_NET_WM_STATE_REMOVE", FALSE);
#define _NET_WM_STATE_REMOVE 0 /* remove/unset property */
#define _NET_WM_STATE_ADD 1 /* add/set property */
#define _NET_WM_STATE_TOGGLE 2 /* toggle property */
xev.xclient.type = ClientMessage;
xev.xclient.serial = 0;
@ -1282,7 +1280,7 @@ gdk_wmspec_change_state (gboolean add,
xev.xclient.window = GDK_WINDOW_XID (window);
xev.xclient.message_type = gdk_atom_intern ("_NET_WM_STATE", FALSE);
xev.xclient.format = 32;
xev.xclient.data.l[0] = op;
xev.xclient.data.l[0] = add ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE;
xev.xclient.data.l[1] = state1;
xev.xclient.data.l[2] = state2;