Skip to content

Commit

Permalink
Set event time to CurrentTime
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed Apr 8, 2024
1 parent 942e8a3 commit 13bdaa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1399,16 +1399,16 @@ void propagate_x11_event(XEvent &ev) {
/* forward the event to the window below conky (e.g. caja) or desktop */
i_ev->common.x = i_ev->common.x_root;
i_ev->common.y = i_ev->common.y_root;
i_ev->common.time = CurrentTime;

XUngrabPointer(display, i_ev->common.time);

// int _revert_to;
// Window focused;
// XGetInputFocus(display, &focused, &_revert_to);
// if (focused == window.window) {
// Time time = CurrentTime;
// if (i_ev != nullptr) { time = i_ev->common.time; }
// XSetInputFocus(display, i_ev->common.window, RevertToPointerRoot, time);
// XSetInputFocus(display, i_ev->common.window, RevertToPointerRoot,
// i_ev->common.time);
// }

XSendEvent(display, i_ev->common.window, False, ev_to_mask(i_ev->type), &ev);
Expand Down

0 comments on commit 13bdaa6

Please sign in to comment.