Commit 245ea3b5 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Call xstuff_set_wmspec_state_hints ()

2001-12-10  Alexander Larsson  <alla@lysator.liu.se>

	* basep-widget.c (basep_widget_realize):
	Call xstuff_set_wmspec_state_hints ()

	* xstuff.[ch] (xstuff_set_wmspec_state_hints):
	New function to set the WMSPEC hints for the panel
	SKIP_PAGER, SKIP_TASKLIST and STICKY.
parent 87effeab
2001-12-10 Alexander Larsson <alla@lysator.liu.se>
* basep-widget.c (basep_widget_realize):
Call xstuff_set_wmspec_state_hints ()
* xstuff.[ch] (xstuff_set_wmspec_state_hints):
New function to set the WMSPEC hints for the panel
SKIP_PAGER, SKIP_TASKLIST and STICKY.
Sun Dec 09 22:35:26 2001 George Lebl <jirka@5z.com>
* Makefile.am, title-item*.(c|h|gob): Title item no longer needed,
......
......@@ -291,6 +291,8 @@ basep_widget_realize (GtkWidget *w)
basep->strut_bottom);
}
xstuff_set_wmspec_state_hints (w->window);
klass = basep_widget_get_pos_class (basep);
g_return_if_fail (klass);
if (klass->realize != NULL)
......
......@@ -645,6 +645,24 @@ xstuff_set_wmspec_dock_hints (GdkWindow *window,
autohide ? 2 : 1);
}
void
xstuff_set_wmspec_state_hints (GdkWindow *window)
{
Atom atoms[3] = { None, None, None};
int i = 0;
atoms[i++] = ATOMGDK (window, "_NET_WM_STATE_SKIP_TASKBAR");
atoms[i++] = ATOMGDK (window, "_NET_WM_STATE_SKIP_PAGER");
atoms[i++] = ATOMGDK (window, "_NET_WM_STATE_STICKY");
XChangeProperty (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XWINDOW (window),
ATOMGDK (window, "_NET_WM_STATE"),
XA_ATOM, 32, PropModeReplace,
(guchar*) atoms, i);
}
void
xstuff_set_wmspec_strut (GdkWindow *window,
int left,
......
......@@ -49,6 +49,7 @@ void xstuff_set_pos_size (GdkWindow *window,
int w, int h);
void xstuff_set_wmspec_dock_hints (GdkWindow *window,
gboolean autohide);
void xstuff_set_wmspec_state_hints (GdkWindow *window);
void xstuff_set_wmspec_strut (GdkWindow *window,
int left,
int right,
......
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