mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 19:05:58 +01:00
fixed an oopsie
This commit is contained in:
parent
9421be0221
commit
0eba018c8b
2 changed files with 3 additions and 1 deletions
BIN
hyprctl/hyprctl
BIN
hyprctl/hyprctl
Binary file not shown.
|
@ -70,9 +70,11 @@ void CInputManager::mouseMoveUnified(uint32_t time) {
|
||||||
void CInputManager::onMouseButton(wlr_event_pointer_button* e) {
|
void CInputManager::onMouseButton(wlr_event_pointer_button* e) {
|
||||||
wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sWLRSeat);
|
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) {
|
switch (e->state) {
|
||||||
case WLR_BUTTON_PRESSED:
|
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();
|
currentlyDraggedWindow = g_pCompositor->windowFloatingFromCursor();
|
||||||
dragButton = e->button;
|
dragButton = e->button;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue