gnome-libs patch
- From: George <jirka 5z com>
- To: gnome-hackers gnome org
- Subject: gnome-libs patch
- Date: Tue, 19 Dec 2000 01:00:14 -0800
A very simple bugfix patch. I'm trying to fix up the hints issues with the
panel vs. sawfish. This is one part of the problem. The other will be
sorting out the sawfish stuff. Apparently even with this patch, sawfish will
not listen to the pleas for change of the hints for a window.
George
--
George <jirka 5z com>
I killed the cat. -- Sid Vicious
Index: gnome-winhints.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-winhints.c,v
retrieving revision 1.13
diff -u -p -r1.13 gnome-winhints.c
--- gnome-winhints.c 1999/08/29 09:13:08 1.13
+++ gnome-winhints.c 2000/12/19 08:07:28
@@ -208,7 +208,7 @@ gnome_win_hints_get_state(GtkWidget *win
}
void
-gnome_win_hints_set_hints(GtkWidget *window, GnomeWinHints skip)
+gnome_win_hints_set_hints(GtkWidget *window, GnomeWinHints hints)
{
GdkWindowPrivate *priv;
XEvent xev;
@@ -231,8 +231,10 @@ gnome_win_hints_set_hints(GtkWidget *win
xev.xclient.data.l[0] = (long)(WIN_HINTS_SKIP_FOCUS |
WIN_HINTS_SKIP_WINLIST |
WIN_HINTS_SKIP_TASKBAR |
- WIN_HINTS_GROUP_TRANSIENT);
- xev.xclient.data.l[1] = (long)skip;
+ WIN_HINTS_GROUP_TRANSIENT |
+ WIN_HINTS_FOCUS_ON_CLICK |
+ WIN_HINTS_DO_NOT_COVER);
+ xev.xclient.data.l[1] = (long)hints;
xev.xclient.data.l[2] = gdk_time_get();
XSendEvent(GDK_DISPLAY(), GDK_ROOT_WINDOW(), False,
@@ -242,7 +244,7 @@ gnome_win_hints_set_hints(GtkWidget *win
{
long data[1];
- data[0] = (long)skip;
+ data[0] = (long)hints;
XChangeProperty(GDK_DISPLAY(), priv->xwindow, _XA_WIN_HINTS,
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)data,
1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]