diff options
author | David Robillard <d@drobilla.net> | 2013-02-24 17:03:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-24 17:03:00 +0000 |
commit | 891b9cc26ca4eb8af03e454b6770bb2a0030b99c (patch) | |
tree | 1618b58e781413728c0ebbe6d4e7a5cf4bd14de2 /src | |
parent | 1db206be1094aea5b0a73affd1dacfe6b0de8dcb (diff) | |
download | suil-891b9cc26ca4eb8af03e454b6770bb2a0030b99c.tar.gz suil-891b9cc26ca4eb8af03e454b6770bb2a0030b99c.tar.bz2 suil-891b9cc26ca4eb8af03e454b6770bb2a0030b99c.zip |
Lower dependency from Gtk 2.24 introduced in 0.6.12
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5083 a436a847-0d15-0410-975c-d299462d15a1
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 |