mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 06:34:40 +00:00
Don't do stacking for override-redirect windows
Don't add override-redirect windows to MetaStack; we shouldn't be restacking them. Since we *aren't* stacking the override-redirect windows, we need to be careful that to ignore them when looking for the top managed window. http://bugzilla.gnome.org/show_bug.cgi?id=585984
This commit is contained in:
@@ -955,8 +955,11 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
||||
* and thus constraints may try to auto-fullscreen it which also
|
||||
* means restacking it.
|
||||
*/
|
||||
meta_stack_add (window->screen->stack,
|
||||
window);
|
||||
if (!window->override_redirect)
|
||||
meta_stack_add (window->screen->stack,
|
||||
window);
|
||||
else
|
||||
window->layer = META_LAYER_OVERRIDE_REDIRECT; /* otherwise set by MetaStack */
|
||||
|
||||
/* Put our state back where it should be,
|
||||
* passing TRUE for is_configure_request, ICCCM says
|
||||
@@ -1311,7 +1314,8 @@ meta_window_unmanage (MetaWindow *window,
|
||||
}
|
||||
#endif
|
||||
|
||||
meta_stack_remove (window->screen->stack, window);
|
||||
if (!window->override_redirect)
|
||||
meta_stack_remove (window->screen->stack, window);
|
||||
|
||||
if (window->frame)
|
||||
meta_window_destroy_frame (window);
|
||||
|
Reference in New Issue
Block a user