diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x11_in_gtk2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 2bafd0c..60cb4e8 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -100,7 +100,7 @@ forward_key_event(SuilX11Wrapper* socket, GdkEvent* gdk_event) { GdkWindow* window = gtk_widget_get_window(GTK_WIDGET(socket->plug)); - GdkScreen* screen = gdk_window_get_screen(window); + GdkScreen* screen = gdk_visual_get_screen(gdk_window_get_visual(window)); XKeyEvent xev; memset(&xev, 0, sizeof(xev)); @@ -112,11 +112,11 @@ forward_key_event(SuilX11Wrapper* socket, xev.state = gdk_event->key.state; xev.keycode = gdk_event->key.hardware_keycode; - XSendEvent (GDK_WINDOW_XDISPLAY(window), - (Window)socket->instance->ui_widget, - False, - NoEventMask, - (XEvent*)&xev); + XSendEvent(GDK_WINDOW_XDISPLAY(window), + (Window)socket->instance->ui_widget, + False, + NoEventMask, + (XEvent*)&xev); } static gboolean |