Don't respond to pings on a root window; prevents infinite loops if we are
Tue Jun 3 18:32:30 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't respond to pings on a root window; prevents infinite loops if we are selecting for SubstructureNotify on the root window. (#111945, Sergey V. Udaltsov)
This commit is contained in:
		@ -1,3 +1,10 @@
 | 
			
		||||
Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
 | 
			
		||||
	respond to pings on a root window; prevents infinite
 | 
			
		||||
	loops if we are selecting for SubstructureNotify on the
 | 
			
		||||
	root window. (#111945, Sergey V. Udaltsov)
 | 
			
		||||
 | 
			
		||||
Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	#71597, reported by Morten Welinder
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
 | 
			
		||||
	respond to pings on a root window; prevents infinite
 | 
			
		||||
	loops if we are selecting for SubstructureNotify on the
 | 
			
		||||
	root window. (#111945, Sergey V. Udaltsov)
 | 
			
		||||
 | 
			
		||||
Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	#71597, reported by Morten Welinder
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
 | 
			
		||||
	respond to pings on a root window; prevents infinite
 | 
			
		||||
	loops if we are selecting for SubstructureNotify on the
 | 
			
		||||
	root window. (#111945, Sergey V. Udaltsov)
 | 
			
		||||
 | 
			
		||||
Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	#71597, reported by Morten Welinder
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
 | 
			
		||||
	respond to pings on a root window; prevents infinite
 | 
			
		||||
	loops if we are selecting for SubstructureNotify on the
 | 
			
		||||
	root window. (#111945, Sergey V. Udaltsov)
 | 
			
		||||
 | 
			
		||||
Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	#71597, reported by Morten Welinder
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
 | 
			
		||||
	respond to pings on a root window; prevents infinite
 | 
			
		||||
	loops if we are selecting for SubstructureNotify on the
 | 
			
		||||
	root window. (#111945, Sergey V. Udaltsov)
 | 
			
		||||
 | 
			
		||||
Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	#71597, reported by Morten Welinder
 | 
			
		||||
 | 
			
		||||
@ -1889,7 +1889,9 @@ gdk_wm_protocols_filter (GdkXEvent *xev,
 | 
			
		||||
      XSync (GDK_WINDOW_XDISPLAY (win), False);
 | 
			
		||||
      gdk_error_trap_pop ();
 | 
			
		||||
    }
 | 
			
		||||
  else if ((Atom) xevent->xclient.data.l[0] == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PING"))
 | 
			
		||||
  else if ((Atom) xevent->xclient.data.l[0] == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PING") &&
 | 
			
		||||
	   !_gdk_x11_display_is_root_window (display,
 | 
			
		||||
					     xevent->xclient.window))
 | 
			
		||||
    {
 | 
			
		||||
      XEvent xev = *xevent;
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user