diff options
author | monsta <[email protected]> | 2014-10-24 15:19:23 +0400 |
---|---|---|
committer | infirit <[email protected]> | 2014-10-24 15:40:43 +0200 |
commit | 75e7c40a57d31c6e9ac640804af9cf73df5ea44f (patch) | |
tree | 49f6fdad63a8162a265170a2b195b423fbb90703 /src | |
parent | b1f7974c587a06f31d2e693f0da02e5a2cf5f232 (diff) | |
download | marco-75e7c40a57d31c6e9ac640804af9cf73df5ea44f.tar.bz2 marco-75e7c40a57d31c6e9ac640804af9cf73df5ea44f.tar.xz |
Fix the resizing of CSD windows
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/frames.c | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 57b73182..75359def 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -1627,7 +1627,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; @@ -1662,28 +1661,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) |