Skip to content

Commit

Permalink
Merge pull request #2 from hjudt/fix-hiding-and-unhiding-mouse-cursor
Browse files Browse the repository at this point in the history
Fix hiding and unhiding mouse cursor
  • Loading branch information
nine7nine authored Dec 13, 2022
2 parents 34a1f79 + dfcb701 commit 4d2bd1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,15 @@ std::list<OSD *> OSD::osd_stack;
void Trace::start(Trace::Point p) {
last = p;
active = true;
XFixesHideCursor(dpy, ROOT);
start_();
}

void Trace::end() {
if (!active)
return;
active = false;
XFixesShowCursor(dpy, ROOT);
end_();
}

Expand Down

0 comments on commit 4d2bd1c

Please sign in to comment.