mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
display: Fix crash with cycle_group
Commit e3ebcc004d
introduced an unsafe
access for 'window', which could cause a segfault.
https://bugzilla.gnome.org/show_bug.cgi?id=645843
This commit is contained in:
parent
f464b85ffc
commit
a3ea43da52
@ -3528,7 +3528,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
* grab the parent instead for moving.
|
||||
*/
|
||||
if (meta_prefs_get_attach_modal_dialogs () &&
|
||||
window->type == META_WINDOW_MODAL_DIALOG &&
|
||||
window && window->type == META_WINDOW_MODAL_DIALOG &&
|
||||
meta_grab_op_is_moving (op))
|
||||
grab_window = meta_window_get_transient_for (window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user