mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
Fix mouse click coordinates forwarded to the desktop window
Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
parent
c3df719716
commit
0cb91fc3db
@ -6704,6 +6704,8 @@ static void main_loop(void)
|
|||||||
/* forward the click to the desktop window */
|
/* forward the click to the desktop window */
|
||||||
XUngrabPointer(display, ev.xbutton.time);
|
XUngrabPointer(display, ev.xbutton.time);
|
||||||
ev.xbutton.window = window.desktop;
|
ev.xbutton.window = window.desktop;
|
||||||
|
ev.xbutton.x = ev.xbutton.x_root;
|
||||||
|
ev.xbutton.y = ev.xbutton.y_root;
|
||||||
XSendEvent(display, ev.xbutton.window, False,
|
XSendEvent(display, ev.xbutton.window, False,
|
||||||
ButtonPressMask, &ev);
|
ButtonPressMask, &ev);
|
||||||
XSetInputFocus(display, ev.xbutton.window,
|
XSetInputFocus(display, ev.xbutton.window,
|
||||||
@ -6723,6 +6725,8 @@ static void main_loop(void)
|
|||||||
} else {
|
} else {
|
||||||
/* forward the release to the desktop window */
|
/* forward the release to the desktop window */
|
||||||
ev.xbutton.window = window.desktop;
|
ev.xbutton.window = window.desktop;
|
||||||
|
ev.xbutton.x = ev.xbutton.x_root;
|
||||||
|
ev.xbutton.y = ev.xbutton.y_root;
|
||||||
XSendEvent(display, ev.xbutton.window, False,
|
XSendEvent(display, ev.xbutton.window, False,
|
||||||
ButtonReleaseMask, &ev);
|
ButtonReleaseMask, &ev);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user