mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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:
parent
5d10196919
commit
b97ebc4124
@ -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 ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user