mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
window: Handle changes of the attach-modal-dialogs preference
Currently we decide whether a modal dialog should be attached or not when mapping it, i.e. we don't pick up preference changes that happen while the dialog is up. It's not really a big deal given that modal dialogs are usually transitory, but it's easy enough to add a bit of extra polish ... https://bugzilla.gnome.org/show_bug.cgi?id=679904
This commit is contained in:
parent
e257580b94
commit
eb1292ea99
@ -198,12 +198,18 @@ prefs_changed_callback (MetaPreference pref,
|
|||||||
{
|
{
|
||||||
MetaWindow *window = data;
|
MetaWindow *window = data;
|
||||||
|
|
||||||
if (pref != META_PREF_WORKSPACES_ONLY_ON_PRIMARY)
|
if (pref == META_PREF_WORKSPACES_ONLY_ON_PRIMARY)
|
||||||
return;
|
{
|
||||||
|
meta_window_update_on_all_workspaces (window);
|
||||||
meta_window_update_on_all_workspaces (window);
|
meta_window_queue (window, META_QUEUE_CALC_SHOWING);
|
||||||
|
}
|
||||||
meta_window_queue (window, META_QUEUE_CALC_SHOWING);
|
else if (pref == META_PREF_ATTACH_MODAL_DIALOGS &&
|
||||||
|
window->type == META_WINDOW_MODAL_DIALOG)
|
||||||
|
{
|
||||||
|
window->attached = meta_window_should_attach_to_parent (window);
|
||||||
|
recalc_window_features (window);
|
||||||
|
meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user