summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-24 19:53:50 +0000
committerDana Jansens <danakj@orodu.net>2007-04-24 19:53:50 +0000
commit0116d82463197bea2890230d71a69e4b92489166 (patch)
treea257b7c2447dbc857587395fbfdda863ab0d6e7c /openbox/screen.c
parentca8665e3093108d5b148916de69ffd9a13be88e4 (diff)
don't activate and change desktops if the client's not on the current desktop and its user_time is older than the last time you changed desktops
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 71748d65..97cab3e6 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -58,6 +58,7 @@ gboolean screen_showing_desktop;
DesktopLayout screen_desktop_layout;
gchar **screen_desktop_names;
Window screen_support_win;
+Time screen_desktop_user_time = CurrentTime;
static Rect **area; /* array of desktop holding array of xinerama areas */
static Rect *monitor_area;
@@ -475,6 +476,9 @@ void screen_set_desktop(guint num)
}
event_ignore_queued_enters();
+
+ if (event_curtime != CurrentTime)
+ screen_desktop_user_time = event_curtime;
}
static void get_row_col(guint d, guint *r, guint *c)