Commit 3b574623 authored by Jan Djärv's avatar Jan Djärv

* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize

type to GDK_NOTHING so valgrind does not complain.

Fixes: debbugs:9901
parent b77a6a7f
2011-10-30 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
type to GDK_NOTHING so valgrind does not complain (Bug#9901).
* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
* xterm.c: Declare x_handle_net_wm_state to return int.
......
......@@ -987,6 +987,7 @@ xg_win_to_widget (Display *dpy, Window wdesc)
{
GdkEvent event;
event.any.window = gdkwin;
event.any.type = GDK_NOTHING;
gwdesc = gtk_get_event_widget (&event);
}
......@@ -3254,6 +3255,7 @@ xg_event_is_for_menubar (FRAME_PTR f, XEvent *event)
gw = gdk_x11_window_lookup_for_display (gdpy, event->xbutton.window);
if (! gw) return 0;
gevent.any.window = gw;
gevent.any.type = GDK_NOTHING;
gwdesc = gtk_get_event_widget (&gevent);
if (! gwdesc) return 0;
if (! GTK_IS_MENU_BAR (gwdesc)
......
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