put MwLLNextEvent's XSetInputFocus under the new option
This commit is contained in:
parent
2a982603d3
commit
beba0116a0
1 changed files with 3 additions and 2 deletions
|
|
@ -708,8 +708,9 @@ static void MwLLNextEventImpl(MwLL handle) {
|
||||||
p.button = MwMOUSE_WHEELDOWN;
|
p.button = MwMOUSE_WHEELDOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this really shouldn't be in this function but it might be needed for enforcing click-to-focus. check later. */
|
#ifndef ALLOW_SLOPPY_FOCUS
|
||||||
/* XSetInputFocus(handle->x11.display, handle->x11.window, RevertToNone, CurrentTime);*/
|
XSetInputFocus(handle->x11.display, handle->x11.window, RevertToNone, CurrentTime);
|
||||||
|
#endif
|
||||||
|
|
||||||
MwLLDispatch(handle, down, &p);
|
MwLLDispatch(handle, down, &p);
|
||||||
} else if(ev.type == ButtonRelease) {
|
} else if(ev.type == ButtonRelease) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue