focus and move mouse to inputmanager

This commit is contained in:
vaxerski 2022-03-18 22:53:27 +01:00
parent a1a8f3b6d5
commit 5811d968bf
5 changed files with 64 additions and 2 deletions

View file

@ -347,7 +347,7 @@ void Events::listener_newInput(wl_listener* listener, void* data) {
break;
case WLR_INPUT_DEVICE_POINTER:
Debug::log(LOG, "Attached a mouse with name %s", DEVICE->name);
wlr_cursor_attach_input_device(g_pCompositor->m_sWLRCursor, DEVICE);
g_pInputManager->newMouse(DEVICE);
break;
default:
break;