Apply a patch by Chris Wilson to avoid spurious valgrind warnings from
2007-01-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/x11/*.c: Apply a patch by Chris Wilson to avoid spurious valgrind warnings from XSendEvent() calls. (#392532) svn path=/trunk/; revision=17044
This commit is contained in:
committed by
Matthias Clasen
parent
d6b33b2ad5
commit
1c2718400d
@ -2191,13 +2191,13 @@ gdk_wm_protocols_filter (GdkXEvent *xev,
|
||||
!_gdk_x11_display_is_root_window (display,
|
||||
xevent->xclient.window))
|
||||
{
|
||||
XEvent xev = *xevent;
|
||||
XClientMessageEvent xclient = xevent->xclient;
|
||||
|
||||
xev.xclient.window = GDK_WINDOW_XROOTWIN (win);
|
||||
xclient.window = GDK_WINDOW_XROOTWIN (win);
|
||||
XSendEvent (GDK_WINDOW_XDISPLAY (win),
|
||||
xev.xclient.window,
|
||||
xclient.window,
|
||||
False,
|
||||
SubstructureRedirectMask | SubstructureNotifyMask, &xev);
|
||||
SubstructureRedirectMask | SubstructureNotifyMask, (XEvent *)&xclient);
|
||||
|
||||
return GDK_FILTER_REMOVE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user