mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Don't add override-redirect windows to workspaces
Normally a window that is "on all workspaces", is also on a particular workspace (to deal with being unstuck.) This is pointless for override-redirect windows. http://bugzilla.gnome.org/show_bug.cgi?id=582639
This commit is contained in:
parent
6516c19ec5
commit
d6576d9b70
@ -898,6 +898,14 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
||||
}
|
||||
}
|
||||
|
||||
/* override-redirect windows are subtly different from other windows
|
||||
* with window->on_all_workspaces == TRUE. Other windows are part of
|
||||
* some workspace (so they can return to that if the flag is turned off),
|
||||
* but appear on other workspaces. override-redirect windows are part
|
||||
* of no workspace.
|
||||
*/
|
||||
if (!window->override_redirect)
|
||||
{
|
||||
if (window->workspace == NULL &&
|
||||
window->xtransient_for != None)
|
||||
{
|
||||
@ -934,8 +942,6 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
||||
}
|
||||
|
||||
/* for the various on_all_workspaces = TRUE possible above */
|
||||
if (!window->override_redirect)
|
||||
{
|
||||
meta_window_set_current_workspace_hint (window);
|
||||
|
||||
meta_window_update_struts (window);
|
||||
|
Loading…
Reference in New Issue
Block a user