Skip to content

Commit

Permalink
overview: fix for HW cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
dawsers committed Dec 23, 2024
1 parent cab413f commit 956735e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static CBox hookLogicalBox(void *thisptr) {

// Needed to render the HW cursor at the right position
static Vector2D hookGetCursorPosForMonitor(void *thisptr, PHLMONITOR monitor) {
if (g_pCompositor->m_pLastMonitor.lock() != monitor)
return { 0.0, 0.0 };

WORKSPACEID workspace = monitor->activeSpecialWorkspaceID();
if (!workspace)
workspace = monitor->activeWorkspaceID();
Expand Down

0 comments on commit 956735e

Please sign in to comment.