mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-26 01:03:51 +03:00
Do not refocus on pressed mouse
This commit is contained in:
parent
befddca16d
commit
ca2459e563
@ -109,8 +109,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
|
|||||||
|
|
||||||
switch (e->state) {
|
switch (e->state) {
|
||||||
case WLR_BUTTON_PRESSED:
|
case WLR_BUTTON_PRESSED:
|
||||||
refocus();
|
|
||||||
|
|
||||||
if ((e->button == BTN_LEFT || e->button == BTN_RIGHT) && wlr_keyboard_get_modifiers(PKEYBOARD) == (uint32_t)g_pConfigManager->getInt("general:main_mod_internal")) {
|
if ((e->button == BTN_LEFT || e->button == BTN_RIGHT) && wlr_keyboard_get_modifiers(PKEYBOARD) == (uint32_t)g_pConfigManager->getInt("general:main_mod_internal")) {
|
||||||
currentlyDraggedWindow = g_pCompositor->windowFloatingFromCursor();
|
currentlyDraggedWindow = g_pCompositor->windowFloatingFromCursor();
|
||||||
dragButton = e->button;
|
dragButton = e->button;
|
||||||
|
Loading…
Reference in New Issue
Block a user