After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762475 - Don't skip dimming check while in the overview
Don't skip dimming check while in the overview
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-22 17:28 UTC by Florian Müllner
Modified: 2016-02-22 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
windowManager: Always check dimming when an attached modal opens/closes (3.03 KB, patch)
2016-02-22 17:28 UTC, Florian Müllner
none Details | Review
windowManager: Only animate dimming changes when necessary (2.07 KB, patch)
2016-02-22 17:28 UTC, Florian Müllner
committed Details | Review
windowManager: Always check dimming when an attached modal opens/closes (2.44 KB, patch)
2016-02-22 18:45 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2016-02-22 17:28:05 UTC
See patches.
Comment 1 Florian Müllner 2016-02-22 17:28:10 UTC
Created attachment 321867 [details] [review]
windowManager: Always check dimming when an attached modal opens/closes

We skip window animations while the overview is shown (and the window
group is hidden) to avoid unnecessary work. However when an attached
modal dialog is opened or closed, this involves checking whether the
parent window should be dimmed - skipping that test means that we can
simply fail to dim or undim a window altogether, so do that check
unconditionally.
Comment 2 Florian Müllner 2016-02-22 17:28:17 UTC
Created attachment 321868 [details] [review]
windowManager: Only animate dimming changes when necessary

Now that we no longer skip dimming/undimming windows while showing
the overview, we can still save a bit of work by changing the dimming
without animation while the window is hidden.
Comment 3 Rui Matos 2016-02-22 18:02:38 UTC
Review of attachment 321867 [details] [review]:

::: js/ui/windowManager.js
@@ +1500,3 @@
+            let parent = window.get_transient_for();
+            this._checkDimming(parent, window);
+            actor._parentDestroyId = parent.connect('unmanaged',

If we don't animate, _destroyWindowDone doesn't get called so when the parent gets unmanaged this handler will run for a destroyed actor.
Comment 4 Rui Matos 2016-02-22 18:04:51 UTC
Review of attachment 321868 [details] [review]:

looks good
Comment 5 Florian Müllner 2016-02-22 18:45:14 UTC
Created attachment 321883 [details] [review]
windowManager: Always check dimming when an attached modal opens/closes
Comment 6 Rui Matos 2016-02-22 18:50:30 UTC
Review of attachment 321883 [details] [review]:

looks fine
Comment 7 Florian Müllner 2016-02-22 19:00:23 UTC
Attachment 321868 [details] pushed as d8960b3 - windowManager: Only animate dimming changes when necessary
Attachment 321883 [details] pushed as 4c29604 - windowManager: Always check dimming when an attached modal opens/closes