summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-10-24 15:19:23 +0400
committerinfirit <[email protected]>2014-10-24 16:57:19 +0200
commitd4969fe7d0f80f3c5989ace682ddb50b4df26715 (patch)
treec131b54d0c2476f47cf344bc79de6a2b7902f9c4 /src
parenta85010e3060ac3852a16afb8803102d5c1702758 (diff)
downloadmarco-d4969fe7d0f80f3c5989ace682ddb50b4df26715.tar.bz2
marco-d4969fe7d0f80f3c5989ace682ddb50b4df26715.tar.xz
Fix the resizing of CSD windows
Diffstat (limited to 'src')
-rw-r--r--src/ui/frames.c33
1 files changed, 10 insertions, 23 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 5c19bd4c..2f0f433e 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1630,7 +1630,6 @@ meta_frames_button_press_event (GtkWidget *widget,
control == META_FRAME_CONTROL_RESIZE_W))
{
MetaGrabOp op;
- gboolean titlebar_is_onscreen;
op = META_GRAB_OP_NONE;
@@ -1665,28 +1664,16 @@ meta_frames_button_press_event (GtkWidget *widget,
break;
}
- meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
- META_CORE_IS_TITLEBAR_ONSCREEN, &titlebar_is_onscreen,
- META_CORE_GET_END);
-
- if (!titlebar_is_onscreen)
- meta_core_show_window_menu (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
- frame->xwindow,
- event->x_root,
- event->y_root,
- event->button,
- event->time);
- else
- meta_core_begin_grab_op (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
- frame->xwindow,
- op,
- TRUE,
- TRUE,
- event->button,
- 0,
- event->time,
- event->x_root,
- event->y_root);
+ meta_core_begin_grab_op (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+ frame->xwindow,
+ op,
+ TRUE,
+ TRUE,
+ event->button,
+ 0,
+ event->time,
+ event->x_root,
+ event->y_root);
}
else if (control == META_FRAME_CONTROL_TITLE &&
event->button == 1)