mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
fix from Gaute Lindkvist #82977 for unsticking windows
2002-06-17 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_change_workspace): fix from Gaute Lindkvist #82977 for unsticking windows
This commit is contained in:
parent
c7a72aeed3
commit
6cda7d0b11
@ -1,3 +1,8 @@
|
||||
2002-06-17 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_change_workspace): fix from Gaute
|
||||
Lindkvist #82977 for unsticking windows
|
||||
|
||||
2002-06-17 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||
|
||||
* src/metacity.schemas.in: associate close_window keybinding to
|
||||
|
2
rationales.txt
Normal file
2
rationales.txt
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
Focus windows on map: see http://bugzilla.gnome.org/show_bug.cgi?id=82921
|
15
src/window.c
15
src/window.c
@ -2737,21 +2737,14 @@ meta_window_change_workspace (MetaWindow *window,
|
||||
meta_verbose ("Changing window %s to workspace %d\n",
|
||||
window->desc, meta_workspace_index (workspace));
|
||||
|
||||
/* See if we're already on this space */
|
||||
if (g_list_find (window->workspaces, workspace) != NULL)
|
||||
/* See if we're already on this space. If not, make sure we are */
|
||||
if (g_list_find (window->workspaces, workspace) == NULL)
|
||||
{
|
||||
meta_verbose ("%s already on this workspace\n", window->desc);
|
||||
return;
|
||||
meta_workspace_add_window (workspace, window);
|
||||
}
|
||||
|
||||
/* Add first, to maintain invariant that we're always
|
||||
* on some workspace.
|
||||
*/
|
||||
meta_workspace_add_window (workspace, window);
|
||||
|
||||
/* unstick if stuck */
|
||||
if (window->on_all_workspaces)
|
||||
window->on_all_workspaces = FALSE;
|
||||
meta_window_unstick (window);
|
||||
|
||||
/* Lamely rely on prepend */
|
||||
g_assert (window->workspaces->data == workspace);
|
||||
|
Loading…
Reference in New Issue
Block a user