catch button presses on the window's frame window, else they end up passing up the heirarchy to the root window, and then that will do things like pop up the root menu by right clicking on the window's frame window.
This commit is contained in:
parent
70fed8c962
commit
7f001973a8
1 changed files with 7 additions and 1 deletions
|
@ -475,7 +475,13 @@ Window BlackboxWindow::createToplevelWindow(void) {
|
|||
attrib_create.background_pixmap = None;
|
||||
attrib_create.colormap = screen->getColormap();
|
||||
attrib_create.override_redirect = True;
|
||||
attrib_create.event_mask = EnterWindowMask | LeaveWindowMask;
|
||||
attrib_create.event_mask = EnterWindowMask | LeaveWindowMask |
|
||||
ButtonPress;
|
||||
/*
|
||||
We catch button presses because other wise they get passed down to the
|
||||
root window, which will then cause root menus to show when you click the
|
||||
window's frame.
|
||||
*/
|
||||
|
||||
return XCreateWindow(blackbox->getXDisplay(), screen->getRootWindow(),
|
||||
0, 0, 1, 1, frame.border_w, screen->getDepth(),
|
||||
|
|
Loading…
Reference in a new issue