summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-27 23:29:02 +0300
committerraveit65 <[email protected]>2018-01-28 16:15:18 +0100
commit16de6ccd2906b93f79880612b31a12a1e53557c7 (patch)
treec1643f9e04908007ee58457f7532225a9f56d7bd /src/core
parent4525d9b629ed76df0bc7d9b10b52c990fa112351 (diff)
downloadmarco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.bz2
marco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'src/core')
-rw-r--r--src/core/display.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 006cb6ff..6dd13419 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1438,11 +1438,7 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
GdkEvent* gdk_event = NULL;
GdkWindow* gdk_window;
Window window;
-#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat;
-#else
- GdkDeviceManager *manager;
-#endif
GdkDevice *device;
switch (xevent->type)
@@ -1478,14 +1474,9 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
* (client-side) subwindow for individual menu items.
*/
-#if GTK_CHECK_VERSION (3, 20, 0)
gdk_display = gdk_window_get_display (gdk_window);
seat = gdk_display_get_default_seat (gdk_display);
device = gdk_seat_get_pointer (seat);
-#else
- manager = gdk_display_get_device_manager (gdk_display);
- device = gdk_device_manager_get_client_pointer (manager);
-#endif
if (gdk_display_device_is_grabbed(gdk_display, device))
{