summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-8/+8
| | | | | * move monitors to sp * XD
* keybinds: fixup xkb_states for resolve_by_symvaxerski2024-10-081-1/+1
| | | | fixes #7750
* wlr-output-configuration: Improve output configuration (#7571)Vaxry2024-09-261-1/+1
|
* dispatchers: fixup dpms toggle (#7875)Kamikadze2024-09-261-3/+4
| | | now toggles every monitor individually
* hyprctl: add submap requestvaxerski2024-09-241-0/+4
| | | | fixes #7898
* dispatchers: allow moveintogroup when floating (#7818)Aqa-Ib2024-09-181-1/+1
| | | | | This allows to use the moveintogroup dispatcher when windows are floating. I don't know why was this disabled in the first place though. Cheers!
* config: add exec-shutdown for running commands on shutdown (#7683)trianta2024-09-071-0/+5
| | | | | * config: add exec-shutdown for running commands on shutdown * compositor: delay stopping until after exec-shutdown
* workspacerules: fix on-created-empty window focus (#7657)Sungyoon Cho2024-09-061-12/+20
|
* keybinds: fixup misused kb stateVaxry2024-08-301-1/+1
| | | | fixes #7369
* keybinds: release mods after sendshortcut (#7581)darkwater2024-08-301-0/+2
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-6/+6
| | | now we roll loops at blazing constified speed.
* misc: fix some minor typos (#7530)Tom Englund2024-08-261-1/+1
| | | | | | | | | | * keybindmgr: fix typo in swap prev seems a suspicious extra ) got added, remove it. * configmgr: dont dereference invalid iterator i think the idea here was to print the key and not the iterator at or past .end()
* core: make most for loops use const references (#7527)Tom Englund2024-08-261-4/+4
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* keybinds: refactor dispatchers to be better (#7331)Ikalco2024-08-241-218/+360
|
* keybinds: Fix syncFullscreen inconsistent with state when set by ↵Kyle2024-08-151-13/+6
| | | | | | | fullscreenState (#7343) * Set syncFullscreen to true on synced non -1 states * Fix syncFullscreen value in fullscreenState
* keybinds: Fix fullscreenState toggling behaviour (#7288)Kyle2024-08-121-5/+4
| | | | | | | | | | | | | * Update fullscreen state dispatcher behaviour * Change syncFullscreen default to false * Revert all changes * Modify fullscreenstate dispatcher toggle behaviour * Update syncFullscreen according to state * Update syncFullscreen before setting fullscreen state
* core: fix data race and a unsigned int rollover (#7278)Tom Englund2024-08-121-0/+3
| | | | | | | | | | | | | | | | | | * keybindmgr: avoid uint rollover on mouse keycode mouse keycode is 0, and the switch case checks for 0 - 8 and rolls over, just return early if keycode is 0. * watchdog: avoid data races in watchdog asan thread sanitizer reported data races in the watchdog from reading and setting the bool variables make them std::atomic bools. also add a atomic bool for the main thread to wait for to avoid data race when reading the config values. * hyprdebug: change non unicode character to name asan created false positives and didnt like this bit, so for the sake of easier debugging rename it to something unicode.
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-081-3/+3
| | | | | | | | | | | | | | | | | | | | overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
* keybinds: fix NoSymbol keybinds (#7199)Ikalco2024-08-071-6/+5
|
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-061-0/+1
| | | | | Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
* keybinds: improve fullscreenstate toggling (#7174)MightyPlaza2024-08-041-5/+19
| | | modified: src/managers/KeybindManager.cpp
* keybinds: allow toggling fullscreenstate (#7128)MightyPlaza2024-08-011-3/+7
| | | modified: src/managers/KeybindManager.cpp
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-311-32/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* keybinds: handle null monitor in pinActive (#7122)André Silva2024-07-311-2/+10
|
* protocols: Move globalshortcuts impl (#7102)Ikalco2024-07-301-2/+3
| | | | | | | * move global shortcuts to hyprwayland-scanner * remove wayland-scanner from deps * fix the thing
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-271-63/+43
| | | | | | | | modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
* config: avoid using initial ws tracking for exec-onceVaxry2024-07-251-1/+1
|
* keybinds: add safeguard to mousebinds (#7034)MightyPlaza2024-07-251-4/+5
| | | modified: src/managers/KeybindManager.cpp
* input: don't simulate mouse movement on focus change in follow_mouse = 2/3 ↵Anton Lazarev2024-07-251-9/+22
| | | | if no_warps is false (#7015)
* keybinds: handle monitor change in moveWindowIntoGroup (#7030)MightyPlaza2024-07-241-0/+5
| | | modified: src/managers/KeybindManager.cpp
* core: Properly shutdown wl display (#7018)Ikalco2024-07-241-1/+1
| | | | | | | * correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
* keybinds: remove toggleopaque (#7024)MightyPlaza2024-07-241-12/+0
| | | | modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp
* keybinds: add bindp and noshortcutsinhibit (#7017)MightyPlaza2024-07-241-3/+4
|
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-29/+32
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* core: Improve handling of window properties (#6776)MightyPlaza2024-07-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add mWindowProperties modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp * support int values modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * create m_sWindowData modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * simplify some properties modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/managers/KeybindManager.cpp * store multiple values in CWindowOverridableVar modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp * use SET_PROP priority for exec rules modified: src/config/ConfigManager.hpp modified: src/desktop/Window.cpp * add default value modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * add setprop toggle modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp * add setprop toggle modified: src/debug/HyprCtl.cpp * make window rules functional modified: src/config/ConfigManager.cpp modified: src/desktop/Window.cpp * minor fixes modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp * properly clean layout data modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp * remove newline modified: src/events/Windows.cpp * fixes modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * use CamelCase modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* keybinds: fix movewindow float to 0 (#6777)MightyPlaza2024-07-051-8/+9
| | | modified: src/managers/KeybindManager.cpp
* session: fix activate events being always treated as on (#6696)はれなよ2024-06-291-12/+1
| | | | | * Fix listener_sessionActive to handle an event correctly when the session get inactivated * Remove log
* keybinds: never switch to another monitor with per_monitor (#6665)Alexander2024-06-271-3/+6
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* keybinds: fix mouse pass (#6652)Gregory2024-06-251-4/+5
| | | | | * keybinds: fix mouse pass * keybinds: keep mouse and keyboard focus separate after pass bind
* output: fix cursors disappearing after dpms (#6659)outfoxxed2024-06-251-0/+3
|
* core: add ability to select previous workspace per monitor (#6598)Alexander2024-06-221-48/+40
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* window: expose pseudotiled state and add param to dispatcher (#6583)Przegryw3212024-06-191-5/+11
| | | | | | | * Show pseudotiled state of window in hyprctl clients * Add a window as an optional argument for the pseudo dispatcher * change formatting
* core: avoid bumping hard rlimits, restore on forkVaxry2024-06-191-0/+1
| | | | ref #6584
* keybinds: ignore missing keysyms if no other methods matchVaxry2024-06-171-0/+6
| | | | fixes #6548
* input: add cursor:warp_on_changeworkspace (#6480)memchr2024-06-161-0/+13
| | | | | | | | | * input: add cursor:warp_on_changeworkspace If enabled, warp the cursor to the last focused window on the workspace in the `changeworkspace' dispatcher, except if the cursor is currently on the WLR top layer. Respect persistent warps. * warp_on_change_workspace: check if focused layer is a window.
* keybinds: add custom event dispatcherVaxry2024-06-151-0/+5
| | | | fixes #3439
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-2/+5
| | | | | | | | | | | | | * core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-12/+12
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* input: add cursor:persistent_warps to maintain relative position within a ↵memchr2024-06-071-12/+37
| | | | | | | | | window (#6338) Allows the cursor to return to its last relative position within a window when the window is refocused. Allows the cursor to retain its relative position within a window when the window is swapped, moved, changed workspace, added to or removed from groups. controlled with cursor:persistent_warps
* build: fix non-pch build (#6337)memchr2024-06-051-0/+1
|