diff options
Diffstat (limited to 'src/x11_in_gtk2.c')
-rw-r--r-- | src/x11_in_gtk2.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 61dcb04..1364a40 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -206,7 +206,7 @@ forward_key_event(SuilX11Wrapper* socket, GdkWindow* window = gtk_widget_get_window(GTK_WIDGET(socket->plug)); GdkScreen* screen = gdk_visual_get_screen(gdk_window_get_visual(window)); - Window target_window; + Window target_window = 0; if (gdk_event->any.window == window) { // Event sent up to the plug window, forward it up to the parent GtkWidget* widget = GTK_WIDGET(socket->instance->host_widget); @@ -309,10 +309,12 @@ forward_size_request(SuilX11Wrapper* socket, (unsigned)width, (unsigned)height); // Get actual widget geometry - Window root; - int wx, wy; - unsigned int ww, wh; - unsigned int ignored; + Window root = 0; + int wx = 0; + int wy = 0; + unsigned int ww = 0; + unsigned int wh = 0; + unsigned int ignored = 0; XGetGeometry(GDK_WINDOW_XDISPLAY(window), (Window)socket->instance->ui_widget, &root, |