Possible crash in netk-util.c
Jasper Huijsmans
jasper at moongroup.com
Sun Dec 7 10:38:41 CET 2003
Hey Olivier,
This crash was reported on the forum. It is with gtk 2.3.0, so I'm not
sure if it is a bug in lingui.
http://xfce.lindesign.se/db/viewtopic.php?t=216&start=17
The code in netk-util.c assumes that XGetWMHints always succeeds. You
are a better judge of this than I am, but perhaps something like this
could be added:
Index: netk-util.c
===================================================================
RCS file: /var/cvs/xfce/xfce4/libxfcegui4/libxfcegui4/netk-util.c,v
retrieving revision 1.11
diff -u -r1.11 netk-util.c
--- netk-util.c 17 Nov 2003 21:46:21 -0000 1.11
+++ netk-util.c 7 Dec 2003 09:31:50 -0000
@@ -65,6 +65,10 @@
wmhints =
XGetWMHints (GDK_WINDOW_XDISPLAY (widget->window),
GDK_WINDOW_XWINDOW (widget->window));
+
+ if (!wmhints && !(wmhints = XAllocWMHints()))
+ return;
+
wmhints->flags |= InputHint;
wmhints->input = False;
XSetWMHints (GDK_WINDOW_XDISPLAY (widget->window),
Jasper
More information about the Xfce4-dev
mailing list