summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* keybinds: fix nullptr deref in forcekillactive (#9021)littleblack1112025-01-101-1/+8
|
* core: always use goal size to send to clientsvaxerski2025-01-101-2/+2
|
* keybinds: add new window destruction dispatchers (#8962)littleblack1112025-01-081-5/+79
|
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-32/+32
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* keybinds: attempt to wrap around if fallback is allowed in movefocusvaxerski2025-01-021-4/+37
| | | | fixes #8909
* core: refactor/improve monitor mode selection (#8804)Ikalco2024-12-281-1/+1
|
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-2/+2
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* binds: cycle within group on single monitor if no window found in the ↵normaltaro2024-12-171-10/+9
| | | | argument direction. (#8714)
* core: drop using deques in favor of vectorsVaxry2024-12-161-1/+1
| | | | No point in most of these.
* dispatchers: Add an option to prioritize focus change within groups with ↵normaltaro2024-12-131-0/+16
| | | | | | | | | | | movefocus (#8601) * modified movefocus dispatcher to prioritize focus change within groups * pass clang-format check * `movefocus` cycling groups set optional to config bool `movefocus_cycles_groupfirst` * Update ConfigDescriptions.hpp
* windowrules: add rules for mouse and touchpad scroll factors (#8655)Mike Will2024-12-111-0/+7
|
* config: add 'force' option for 'cursor:warp_on_change_workspace' (#8681)Pavel Belyavsky2024-12-101-2/+2
| | | | | | | * config: add 'force' option for 'cursor:warp_on_change_workspace' * manager: throw the expression into the function arguments * config: fix description of `cursor:warp_on_change_workspace`
* core: Add clang-tidy (#8664)Vaxry2024-12-071-19/+17
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* internal: fixup some missed updateColorsOk() callsVaxry2024-12-031-0/+2
|
* core: move colorspace handling to oklab (#8635)Vaxry2024-12-031-1/+1
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* core: fix compilation outside stdlibc++Vaxry2024-11-281-2/+2
| | | | fixes #8603
* core: workspace-related function cleanup / refactorVaxry2024-11-221-11/+19
| | | | CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
* keybinds: actually suppress internal keybinds instead of passing them along ↵may2024-11-221-1/+3
| | | | (#8538)
* internal: fix some misused configStringToInt conversionsVaxry2024-11-201-4/+4
| | | | fixes #8523
* internal: minor cleanups for color resultsVaxry2024-11-191-9/+14
|
* miscfunctions: move configStringToInt to std::expectedVaxry2024-11-181-6/+9
|
* keybinds: move to managed pointersVaxry2024-11-181-57/+50
|
* keybinds: allow repeating multiple binds (#8290)MightyPlaza2024-11-181-38/+31
|
* workspace: fix missing name via focusworkspaceoncurrentmonitor (#8484)sslater112024-11-161-2/+2
|
* bind: new long press option (#8302)littleblack1112024-11-151-3/+37
| | | | | --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* keybinds: don't animate fullscreen size/pos changes coming inVaxry2024-11-111-0/+8
| | | | | | when fullscreen, don't animate the pos/size when switching to another fullscreen window, as they can look weird and distracting. Ideally we would do it differently but it's not really possible to do well without reading minds
* group: fix moveWindowIntoGroup (#8297)Aqa-Ib2024-10-301-2/+1
|
* hyprctl: move setprop into dispatchers (#8275)MightyPlaza2024-10-281-0/+95
| | | | | | | | | * move setprop into dispatchers modified: src/debug/HyprCtl.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp * add deprecated modified: src/debug/HyprCtl.cpp
* core: move internal structures to monitor pointers (#8266)Vaxry2024-10-271-17/+17
|
* 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