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
This commit is contained in:
Marek Chalupa 2015-07-03 11:28:00 +02:00 committed by Michael Catanzaro
parent 5d10196919
commit b97ebc4124

View File

@ -1053,6 +1053,11 @@ meta_frame_left_click_event (MetaUIFrame *frame,
} }
return TRUE; 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: default:
g_assert_not_reached (); g_assert_not_reached ();
} }