summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--src/x11_in_gtk2.c12
2 files changed, 9 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index e81d35f..f26f97c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,9 @@
suil (0.6.13) unstable;
- * Print system error message if module failes to load
+ * Print system error message if module fails to load
+ * Lower dependency from Gtk 2.24 introduced in 0.6.12
- -- David Robillard <d@drobilla.net> Sun, 24 Feb 2013 11:33:04 -0500
+ -- David Robillard <d@drobilla.net> Sun, 24 Feb 2013 12:02:41 -0500
suil (0.6.12) stable;
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