summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2015-07-03 11:28:00 +0200
committerMichael Catanzaro <mcatanzaro@gnome.org>2015-07-15 07:45:02 -0500
commitb97ebc412426115efecc85e6eeec0fcf9b17dd39 (patch)
tree9bebd3dd0c97f4f99c4efb941abbe324b86b9de7 /src/ui
parent5d1019691935bc24758aff4571d2ef5cae48720a (diff)
downloadmutter-b97ebc412426115efecc85e6eeec0fcf9b17dd39.tar.gz
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
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/frames.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 362d7b6fb..a2f7f45d4 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 ();
}