diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-22 00:57:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-22 00:57:29 +0000 |
| commit | 8a48fff773dea20ab93ee8f22b281e852b51242e (patch) | |
| tree | 16d26f76e49b2d38d110fac88b244a105272f821 /src/blackbox.cc | |
| parent | f44e3ed9a7232a38b454e293daee2f3e7009ad54 (diff) | |
support for showing the root and workspace menu with epist
Diffstat (limited to 'src/blackbox.cc')
| -rw-r--r-- | src/blackbox.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc index efb782a5..e8b8dcaa 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -908,6 +908,28 @@ void Blackbox::process_event(XEvent *e) { } } } + } else if (e->xclient.message_type == + xatom->getAtom(XAtom::openbox_show_root_menu) || + e->xclient.message_type == + xatom->getAtom(XAtom::openbox_show_workspace_menu)) { + // find the screen the mouse is on + int x, y; + ScreenList::iterator it, end = screenList.end(); + for (it = screenList.begin(); it != end; ++it) { + Window w; + int i; + unsigned int m; + if (XQueryPointer(getXDisplay(), (*it)->getRootWindow(), + &w, &w, &x, &y, &i, &i, &m)) + break; + } + if (it != end) { + if (e->xclient.message_type == + xatom->getAtom(XAtom::openbox_show_root_menu)) + (*it)->showRootMenu(x, y); + else + (*it)->showWorkspaceMenu(x, y); + } } } |
