diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-04 00:54:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-04 00:54:19 +0000 |
| commit | fcb0820d943f0f37d7eacba0061fb79a30ec397e (patch) | |
| tree | a04ff29de414cf6f7e0f2964608672184091a679 /src/client.cc | |
| parent | 126d9fc846adfc6aee3d4cdd566f9b712b82f98c (diff) | |
add support for net_active_window and net_close_window messages
Diffstat (limited to 'src/client.cc')
| -rw-r--r-- | src/client.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/client.cc b/src/client.cc index 3ac9002c..a12ec941 100644 --- a/src/client.cc +++ b/src/client.cc @@ -541,8 +541,8 @@ void OBClient::setDesktop(long target) { assert(target >= 0); //assert(target == 0xffffffff || target < MAX); - - // XXX: move the window to the new desktop + + // XXX: move the window to the new desktop (and set root property) _desktop = target; } @@ -768,10 +768,16 @@ void OBClient::clientMessageHandler(const XClientMessageEvent &e) setDesktop(e.data.l[0]); // use the found event else setDesktop(e.data.l[0]); // use the original event - } - else if (e.message_type == property->atom(otk::OBProperty::net_wm_state)) + } else if (e.message_type == property->atom(otk::OBProperty::net_wm_state)) { // can't compress these setState((StateAction)e.data.l[0], e.data.l[1], e.data.l[2]); + } else if (e.message_type == + property->atom(otk::OBProperty::net_close_window)) { + close(); + } else if (e.message_type == + property->atom(otk::OBProperty::net_active_window)) { + focus(); + } } |
