summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-04 08:51:47 +0000
committerDana Jansens <danakj@orodu.net>2003-02-04 08:51:47 +0000
commit51a41b9b765dbcf76ec09324f533d8c8edd46e37 (patch)
tree6b1092e8d806ecfaf577feba66e045a17b015b90 /src/client.cc
parentf6085d780192b805ef61678cdc0935a917cc2b3f (diff)
all new stacked cycling code. so much sexy.
add an openbox_active_window client message that lets you specify if you want the window to be raised and/or unshaded.
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client.cc b/src/client.cc
index 1312cac8..d42a962a 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -1092,9 +1092,16 @@ void Client::clientMessageHandler(const XClientMessageEvent &e)
setDesktop(openbox->screen(_screen)->desktop());
if (_shaded)
shade(false);
- // XXX: deiconify
focus();
openbox->screen(_screen)->raiseWindow(this);
+ } else if (e.message_type == otk::Property::atoms.openbox_active_window) {
+ if (_iconic)
+ setDesktop(openbox->screen(_screen)->desktop());
+ if (e.data.l[0] && _shaded)
+ shade(false);
+ focus();
+ if (e.data.l[1])
+ openbox->screen(_screen)->raiseWindow(this);
}
}