summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-05 12:01:09 +0200
committerStefano Karapetsas <[email protected]>2014-05-05 12:01:09 +0200
commit7efc3d6e3ba89ec456b99349364f72b5c861ad96 (patch)
treecdf5733a6a26d1405a72ef485a912439f8a86478 /src
parent36697f556061dfb3c3776568510c5f3f692f7ce9 (diff)
downloadmarco-7efc3d6e3ba89ec456b99349364f72b5c861ad96.tar.bz2
marco-7efc3d6e3ba89ec456b99349364f72b5c861ad96.tar.xz
Dont destroy all windows with GTK2
Regression introduced with http://git.mate-desktop.org/marco/commit/?id=3695f97acfd3d81e7f9ce23be3243d63fce35746
Diffstat (limited to 'src')
-rw-r--r--src/core/display.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 2fdf6bfd..c7d79009 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1523,11 +1523,7 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
gdk_event = gdk_event_new(GDK_BUTTON_RELEASE);
}
-#if GTK_CHECK_VERSION (3, 0, 0)
gdk_event->button.window = g_object_ref(gdk_window);
-#else
- gdk_event->button.window = gdk_window;
-#endif
gdk_event->button.send_event = 0;
gdk_event->button.axes = NULL;
gdk_event->button.state = 0;
@@ -1543,11 +1539,7 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
case MotionNotify:
gdk_event = gdk_event_new(GDK_MOTION_NOTIFY);
-#if GTK_CHECK_VERSION (3, 0, 0)
gdk_event->motion.window = g_object_ref(gdk_window);
-#else
- gdk_event->motion.window = gdk_window;
-#endif
gdk_event->motion.send_event = FALSE;
gdk_event->motion.time = 0;
gdk_event->motion.x = 0;
@@ -1564,11 +1556,7 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
case LeaveNotify:
gdk_event = gdk_event_new(xevent->type == EnterNotify ? GDK_ENTER_NOTIFY : GDK_LEAVE_NOTIFY);
-#if GTK_CHECK_VERSION(3, 0, 0)
gdk_event->crossing.window = g_object_ref(gdk_window);
-#else
- gdk_event->crossing.window = gdk_window;
-#endif
gdk_event->crossing.send_event = 0;
gdk_event->crossing.subwindow = NULL;
gdk_event->crossing.time = 0;