[mutter/gnome-3-16] frames: handle META_FRAME_CONTROL_NONE on left click



commit f60c33b5afc4b1dff0b31f17d7ae222db8aa789f
Author: Marek Chalupa <mchqwerty gmail com>
Date:   Fri Jul 3 11:28:00 2015 +0200

    frames: handle META_FRAME_CONTROL_NONE on left click
    
    We can get this operation in some cases, for example when
    we're trying to resize window that cannot be resized.
    This can occur with maximized windows that have a border
    (without border we couldn't resize them by mouse in maximized state).
    In this case we reached abort() beacuse we did not handle this op.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751884

 src/ui/frames.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 362d7b6..a2f7f45 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1053,6 +1053,11 @@ meta_frame_left_click_event (MetaUIFrame *frame,
       }
 
       return TRUE;
+    case META_FRAME_CONTROL_NONE:
+      /* We can get this for example when trying to resize window
+       * that cannot be resized (e. g. it is maximized and the theme
+       * currently used has borders for maximized windows), see #751884 */
+      return FALSE;
     default:
       g_assert_not_reached ();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]