summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-26 18:15:58 +0000
committerDana Jansens <danakj@orodu.net>2003-09-26 18:15:58 +0000
commitdfd524926e5d8f0b9cdb120ce1d943a7f8b1af3a (patch)
treee5f3c1bf45620540cf0c5b8b5918187c9da45537 /openbox/client.c
parent411cc1d1d9e0c7ad07fe6bce548ccf101a2f4c7a (diff)
add client_raise and client_lower which just fire off actions
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 6de12d19..bc218af0 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2289,7 +2289,7 @@ void client_set_desktop_recursive(ObClient *self,
client_showhide(self);
/* raise if it was not already on the desktop */
if (old != DESKTOP_ALL)
- action_run_string("Raise", self);
+ client_raise(self);
screen_update_areas();
/* add to the new desktop(s) */
@@ -2602,7 +2602,7 @@ void client_activate(ObClient *self, gboolean here)
if (client_normal(self) && screen_showing_desktop)
screen_show_desktop(FALSE);
if (self->iconic)
- client_iconify(self, FALSE, FALSE);
+ client_iconify(self, FALSE, here);
if (self->desktop != DESKTOP_ALL &&
self->desktop != screen_desktop) {
if (here)
@@ -2623,6 +2623,16 @@ void client_activate(ObClient *self, gboolean here)
about raising the window. when a fullscreen window loses focus, we need
this or else the raise wont be able to raise above the to-lose-focus
fullscreen window. */
+ client_raise(self);
+}
+
+void client_raise(ObClient *self)
+{
+ action_run_string("Raise", self);
+}
+
+void client_lower(ObClient *self)
+{
action_run_string("Raise", self);
}