fixed XDG popups yet again + removed some old TODOs

This commit is contained in:
vaxerski
2022-04-10 16:47:19 +02:00
parent 92bfe6f13e
commit 71916ee09a
5 changed files with 10 additions and 15 deletions

View File

@@ -56,8 +56,7 @@ void Events::listener_mouseAxis(wl_listener* listener, void* data) {
void Events::listener_requestMouse(wl_listener* listener, void* data) {
const auto EVENT = (wlr_seat_pointer_request_set_cursor_event*)data;
// TODO: crashes sometimes
if (EVENT->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client)
wlr_cursor_set_surface(g_pCompositor->m_sWLRCursor, EVENT->surface, EVENT->hotspot_x, EVENT->hotspot_y);
}