Skip to content

Commit

Permalink
events: use enter coords
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 6, 2024
1 parent 2da9a60 commit cbd963e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/events/Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ void Events::handleCapabilities(void* data, wl_seat* wl_seat, uint32_t capabilit
}

void Events::handlePointerEnter(void* data, struct wl_pointer* wl_pointer, uint32_t serial, struct wl_surface* surface, wl_fixed_t surface_x, wl_fixed_t surface_y) {
auto x = wl_fixed_to_double(surface_x);
auto y = wl_fixed_to_double(surface_y);

g_pHyprpicker->m_vLastCoords = {x, y};

g_pHyprpicker->markDirty();

for (auto& ls : g_pHyprpicker->m_vLayerSurfaces) {
Expand Down

0 comments on commit cbd963e

Please sign in to comment.