mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
display: Don't grab transient's parent unconditionally
Since commit 6e8d1d79d
, move operations are always performed for
the (toplevel) parent of all transient, which is just plain silly
if the dialog is not actually attached to its parent (either because
the dialog is not modal or the setting is disabled).
This commit is contained in:
parent
f3a2bb7779
commit
a6601e92aa
@ -1773,7 +1773,8 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
|||||||
/* If window is a modal dialog attached to its parent,
|
/* If window is a modal dialog attached to its parent,
|
||||||
* grab the parent instead for moving.
|
* grab the parent instead for moving.
|
||||||
*/
|
*/
|
||||||
if (meta_grab_op_is_moving (op))
|
if (window && meta_window_is_attached_dialog (window) &&
|
||||||
|
meta_grab_op_is_moving (op))
|
||||||
grab_window = get_toplevel_transient_for (window);
|
grab_window = get_toplevel_transient_for (window);
|
||||||
|
|
||||||
g_assert (grab_window != NULL);
|
g_assert (grab_window != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user