diff --git a/hyprctl/hyprctl b/hyprctl/hyprctl deleted file mode 100755 index 43657fc0..00000000 Binary files a/hyprctl/hyprctl and /dev/null differ diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index f05c0ba5..636fb748 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -70,9 +70,11 @@ void CInputManager::mouseMoveUnified(uint32_t time) { void CInputManager::onMouseButton(wlr_event_pointer_button* e) { wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sWLRSeat); + const auto PKEYBOARD = wlr_seat_get_keyboard(g_pCompositor->m_sWLRSeat); + switch (e->state) { case WLR_BUTTON_PRESSED: - if (e->button == BTN_LEFT || e->button == BTN_RIGHT) { + if ((e->button == BTN_LEFT || e->button == BTN_RIGHT) && wlr_keyboard_get_modifiers(PKEYBOARD) == g_pConfigManager->getInt("general:main_mod_internal")) { currentlyDraggedWindow = g_pCompositor->windowFloatingFromCursor(); dragButton = e->button;