[mutter/meego-1.0: 2/30] [MetaWindow] Switch workspace on activation
- From: Tomas Frydrych <tomasf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/meego-1.0: 2/30] [MetaWindow] Switch workspace on activation
- Date: Fri, 14 May 2010 15:49:55 +0000 (UTC)
commit 5d03d96be3a83b9a6f132427dd8128c409bebaf2
Author: Tomas Frydrych <tf linux intel com>
Date: Fri May 15 12:38:50 2009 +0100
[MetaWindow] Switch workspace on activation
If the window we are activating is on non-active workspace, activate the
workspace. This is currently needed to because of the zones; need to revisit
to implement something more robust to match the moblin needs.
(cherry picked from commit a048c109d65128642045476c7e8c92b8a74aac05)
src/core/window.c | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 2d12d53..a849cd1 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3526,9 +3526,24 @@ window_activate (MetaWindow *window,
if (window->xtransient_for == None &&
!meta_window_located_on_workspace (window, workspace))
{
- meta_window_set_demands_attention (window);
- /* We've marked it as demanding, don't need to do anything else. */
- return;
+ /* Moblin Netbook modificatition - due to dependance on zones we
+ * need to loosen app ability to switch workspaces. In the future
+ * something a little safer and specific probably better..
+ */
+ if (!window->on_all_workspaces)
+ {
+ GList *tmp;
+
+ tmp = meta_window_get_workspaces (window);
+
+ if (tmp)
+ meta_workspace_activate_with_focus ((MetaWorkspace*)tmp->data,
+ window,
+ timestamp);
+
+ /* meta_window_set_demands_attention (window); */
+ return;
+ }
}
else if (window->xtransient_for != None)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]