[metacity] window: recompute modal dialog attached status when the window type changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: recompute modal dialog attached status when the window type changes
- Date: Thu, 2 Mar 2017 22:16:49 +0000 (UTC)
commit a2916b07d441156728a9efa43101cf67297917e2
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Dec 18 23:17:38 2012 +0100
window: recompute modal dialog attached status when the window type changes
We want to maintain the invariant that an attached modal dialog is always
of type MODAL_DIALOG, so recompute is_attached_dialog() when the window
type changes.
https://bugzilla.gnome.org/show_bug.cgi?id=690454
src/core/window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 748b1d1..bb9a936 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6606,6 +6606,7 @@ recalc_window_type (MetaWindow *window)
if (old_type != window->type)
{
+ window->attached = meta_window_should_attach_to_parent (window);
recalc_window_features (window);
if (!window->override_redirect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]