mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
display: Fix crash with cycle_group
Commit e3ebcc004d6ddb13174cfdd934cb086fb2e50808 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…
x
Reference in New Issue
Block a user