Commit b6cc525f authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

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.
parent 84191d67
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment