projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a95b5a
)
when i get a button press on the client window, i have to manufacture the release...
author
Dana Jansens
<danakj@orodu.net>
Fri, 10 Jan 2003 19:17:26 +0000
(19:17 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 10 Jan 2003 19:17:26 +0000
(19:17 +0000)
src/actions.cc
patch
|
blob
|
history
diff --git
a/src/actions.cc
b/src/actions.cc
index 7b538de676bbaee170801f1e71fd4b77931156e8..309323cca6281c323e027a2bd093e7d066b27597 100644
(file)
--- a/
src/actions.cc
+++ b/
src/actions.cc
@@
-88,6
+88,17
@@
void OBActions::buttonPressHandler(const XButtonEvent &e)
if (_button) return; // won't count toward CLICK events
_button = e.button;
+
+ if (w->mcontext() == MC_Window) {
+ /*
+ Because of how events are grabbed on the client window, we can't get
+ ButtonRelease events, so instead we simply manufacture them here, so that
+ clicks/doubleclicks etc still work.
+ */
+ XButtonEvent ev = e;
+ ev.type = ButtonRelease;
+ buttonReleaseHandler(ev);
+ }
}