summaryrefslogtreecommitdiff
path: root/src/managers/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 18:23:16 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 18:23:16 +0100
commit0eba018c8bb0a11187e6fcf04e37ccc52af04d84 (patch)
treeb04f87a7f39284563ca550e74767ea681b00e472 /src/managers/InputManager.cpp
parent9421be022190897c8c20b2a8a720d3697955d9ed (diff)
fixed an oopsie
Diffstat (limited to 'src/managers/InputManager.cpp')
-rw-r--r--src/managers/InputManager.cpp4
1 files changed, 3 insertions, 1 deletions
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;