summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* config: add tag dispacther and window rule (#6211)giskard2024-05-281-8/+25
|
* keybinds: Added new dispatcher (sendshortcut) (#6174)Can2024-05-241-1/+153
|
* internal: save previous workspace before change (#6202)shezdy2024-05-231-11/+11
|
* keybinds: Add option to disable window direction monitor fallback (#6182)shezdy2024-05-221-4/+13
| | | | | * add monitor fallback option * format
* keybinds: add keybind combos and add Left and Right mod distinction. (#5966)Gabriel Ford2024-05-161-16/+68
|
* wl_seat: move to hyprland implVaxry2024-05-141-35/+29
|
* keybinds: fix passVaxry2024-05-121-1/+2
| | | | | | reverts #5967 fixes #6022
* core: fix on-empty workspace being called too often (#6026)Brenno Lemos2024-05-121-2/+2
|
* keybinds: fix release binds in submaps (#6025)shezdy2024-05-121-3/+2
|
* core: remove unused includes and fix warnVaxry2024-05-101-2/+0
|
* keybinds: Fix classic global keybinds(pass dispatcher) (#5967)sub-kek2024-05-091-1/+1
|
* cursor: move to a hyprland implVaxry2024-05-091-23/+22
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* ipc: add togglegroup, moveintogroup and moveoutofgroup events (#5866)VPavliashvili2024-05-071-0/+4
|
* keybinds: fix xkb keybind name to keysym comparison (#5917)Ikalco2024-05-071-5/+4
|
* keybinds: make the keybind manager check for session lock (#5894)Ikalco2024-05-051-0/+3
|
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-14/+14
| | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
* input: Introduce basic hyprland HID classesVaxry2024-05-031-15/+16
| | | | | | Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore.
* inputmgr: dont double free on hotplug (#5855)Tom Englund2024-05-031-1/+0
| | | | | | | | | | | | | | * inputmgr: dont double free on hotplug since we are also unrefing the state on hotplugging the keyboard set the state to nullptr so the destructor if case actually catches its been already freed. * keybindgmgr: dont double free on layout switching d5bf153 added keymap unref at the end of updateXKBTranslationState to not leak it when exiting, only it causes updateXKBTranslationState to double free when changing layouts. since its already freed. remove the unneeded extra xkb_keymap_unref.
* internal: fix a few asan reported leaks on exit of hyprland (#5852)Tom Englund2024-05-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * notifications: free cairo images on destruction asan reports a leak on exit if we dont free the image we created in the draw function. add a destructor and free images on exit. * compositor: destroy wlroots types on exit there are a few types not being destroyed on exit and causing a leak on exit in wlroots reported by asan, add those. * cursormgr: ensure we destroy cursor mgr on exit add a destructor and call wlr_xcursor_manager_destroy on the manager on destruction, leak reported by asan. * keybindmgr: free state and keymap add missing keymap_unref on creation, and add a destructor and free the state on exit. leak reported by asan. * skeyboard: add destructor and free state free the state on destruction of keyboard, reported as leak by asan
* ime-v2: move to new implVaxry2024-05-011-3/+0
|
* keybinds: check for special workspace equality before switchingVaxry2024-04-301-1/+2
| | | | fixes #5814