From 8a48fff773dea20ab93ee8f22b281e852b51242e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 22 Aug 2002 00:57:29 +0000 Subject: support for showing the root and workspace menu with epist --- src/blackbox.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/blackbox.cc') 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); + } } } -- cgit v1.2.3