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 590971 - Don't allow override-redirect windows to be META_WINDOW_NORMAL
Don't allow override-redirect windows to be META_WINDOW_NORMAL
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-06 16:16 UTC by Owen Taylor
Modified: 2009-08-06 17:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't allow override-redirect windows to be META_WINDOW_NORMAL (2.82 KB, patch)
2009-08-06 16:16 UTC, Owen Taylor
reviewed Details | Review

Description Owen Taylor 2009-08-06 16:16:21 UTC
This fixes the default plugin and gnome-shell now showing effects when
mapping many override-redirect windows. (The default plugin is pretty
amusing at the moment because, among other things, it is showing effects
for thin frame window used to highlight windows in Alt-Tab)

This probably eliminates the need for the patch in
c9e0613b531064e38dfd639ed602bb56d0e85384, since that was a correct
for override-redirect windows that were META_WINDOW_NORMAL, but leaving
the change there should't do any harm.
Comment 1 Owen Taylor 2009-08-06 16:16:25 UTC
Created attachment 140044 [details] [review]
Don't allow override-redirect windows to be META_WINDOW_NORMAL

Many override-redirect windows (including the Metacity UI windows!)
will have NET_WM_WINDOW_TYPE_NORMAL set on them because of shared
code paths with normal windows in toolkits.

Some current Compositor plugins (default plugin and gnome-shell)
check type == NORMAL to determine if to run effects. While fixing
such plugins to also check if the window is override-redirect is
posisble, it seems cleanest to simply not allow any of the decorated
window types to be set on an override-redirect window and to force
these types to META_WINDOW_OVERRIDE_OTHER. This will prevent other
similar problems from showing up in the future.
Comment 2 Tomas Frydrych 2009-08-06 16:19:31 UTC
I am happy with this change, run into the same problem in the moblin plugin just 20min ago.
Comment 3 Owen Taylor 2009-08-06 17:05:21 UTC
Pushed