patch from Hidetoshi Tajima to move a window's transients when moving the

2002-11-22  Havoc Pennington  <hp@pobox.com>

	* src/window.c (meta_window_change_workspace): patch from
	Hidetoshi Tajima to move a window's transients when moving
	the window between workspaces. #98900

2002-11-21  Havoc Pennington  <hp@pobox.com>

	* src/display.c (meta_display_open): init ret_to to
	RevertToPointerRoot out of sheer paranoia; don't want no
	RevertToNone in my code!
This commit is contained in:
Havoc Pennington 2002-11-22 06:00:18 +00:00 committed by Havoc Pennington
parent 5452a0ecac
commit fd135d0869
3 changed files with 33 additions and 4 deletions

View File

@ -1,3 +1,15 @@
2002-11-22 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_change_workspace): patch from
Hidetoshi Tajima to move a window's transients when moving
the window between workspaces. #98900
2002-11-21 Havoc Pennington <hp@pobox.com>
* src/display.c (meta_display_open): init ret_to to
RevertToPointerRoot out of sheer paranoia; don't want no
RevertToNone in my code!
2002-11-21 Havoc Pennington <hp@pobox.com> 2002-11-21 Havoc Pennington <hp@pobox.com>
* src/window.c (update_initial_workspace): delete * src/window.c (update_initial_workspace): delete

View File

@ -528,7 +528,7 @@ meta_display_open (const char *name)
meta_error_trap_push (display); meta_error_trap_push (display);
focus = None; focus = None;
ret_to = RevertToNone; ret_to = RevertToPointerRoot;
XGetInputFocus (display->xdisplay, &focus, &ret_to); XGetInputFocus (display->xdisplay, &focus, &ret_to);
/* Force a new FocusIn (does this work?) */ /* Force a new FocusIn (does this work?) */

View File

@ -2960,9 +2960,9 @@ meta_window_focus (MetaWindow *window,
} }
} }
void static void
meta_window_change_workspace (MetaWindow *window, meta_window_change_workspace_without_transients (MetaWindow *window,
MetaWorkspace *workspace) MetaWorkspace *workspace)
{ {
GList *next; GList *next;
@ -2997,6 +2997,23 @@ meta_window_change_workspace (MetaWindow *window,
g_assert (window->workspaces->next == NULL); g_assert (window->workspaces->next == NULL);
} }
static void
change_workspace_foreach (MetaWindow *window,
void *data)
{
meta_window_change_workspace_without_transients (window, data);
}
void
meta_window_change_workspace (MetaWindow *window,
MetaWorkspace *workspace)
{
meta_window_change_workspace_without_transients (window, workspace);
meta_window_foreach_transient (window, change_workspace_foreach,
workspace);
}
void void
meta_window_stick (MetaWindow *window) meta_window_stick (MetaWindow *window)
{ {