summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r--src/ui/frames.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index a705ba5b..eb0a529f 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1655,13 +1655,8 @@ meta_frame_titlebar_event (MetaFrames *frames,
{
GdkRectangle rect;
-#if GTK_CHECK_VERSION (3, 22, 0)
rect.x = event->x;
rect.y = event->y;
-#else
- rect.x = event->x_root;
- rect.y = event->y_root;
-#endif
rect.width = 0;
rect.height = 0;
@@ -1831,15 +1826,6 @@ meta_frames_button_press_event (GtkWidget *widget,
return FALSE;
}
-#if !GTK_CHECK_VERSION (3, 22, 0)
- rect.x += event->x_root - event->x;
- rect.y += rect.height + event->y_root - event->y;
-
- /* Align to the right end of the menu rectangle if RTL */
- if (meta_ui_get_direction() == META_UI_DIRECTION_RTL)
- rect.x += rect.width;
-#endif
-
frame->ignore_leave_notify = TRUE;
meta_core_show_window_menu (frames->xdisplay,
frame->xwindow,