summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2013-09-08 13:39:59 -0400
committerDana Jansens <danakj@orodu.net>2013-09-09 10:47:43 -0400
commit7b408bc3b8f5166a3c725459e0ae7fd93ec8aacb (patch)
tree1dcfddd23141a043a049b05b7027555ab12ee6b3 /openbox/event.c
parentadcb7a78d9e58c2670b0b046f418a39ec52afb5e (diff)
Add a strict option to the ToggleShowDesktop action
When the strict option is used, normal windows are not able to show themselves while showing the desktop.
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 1b3a0e46..31462a92 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -772,7 +772,12 @@ static void event_handle_root(XEvent *e)
if (d > 0 && d <= 1000)
screen_set_num_desktops(d);
} else if (msgtype == OBT_PROP_ATOM(NET_SHOWING_DESKTOP)) {
- screen_show_desktop(e->xclient.data.l[0] != 0, NULL);
+ ObScreenShowDestopMode show_mode;
+ if (e->xclient.data.l[0] != 0)
+ show_mode = SCREEN_SHOW_DESKTOP_UNTIL_WINDOW;
+ else
+ show_mode = SCREEN_SHOW_DESKTOP_NO;
+ screen_show_desktop(show_mode, NULL);
} else if (msgtype == OBT_PROP_ATOM(OB_CONTROL)) {
ob_debug("OB_CONTROL: %d", e->xclient.data.l[0]);
if (e->xclient.data.l[0] == 1)