summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* idle-inhibit: fix and cleanup visibility logicVaxry2024-05-049-28/+74
| | | | fixes #5878
* shadow: fix small pixel gaps between borderVaxry2024-05-041-1/+1
| | | | huge fix
* keyboard: prevent UAF in destroy eventsVaxry2024-05-042-2/+2
|
* keyboard: check for wlr() validity before accessingVaxry2024-05-041-1/+1
| | | | fixes #5873
* hid: don't access expired resources in virtual devicesVaxry2024-05-042-0/+6
| | | | fixes #5868
* windows: set fullscreen border size to 0 (#5865)JManch2024-05-041-1/+1
|
* workspacerule: Fix monitor settings being deleted when merging ws rules (#5864)thejch2024-05-041-0/+9
| | | | | * fix deleting monitor settings when merging rules * use empty and workspace invalid
* input: ignore destroyed devices in static eventsVaxry2024-05-041-0/+12
| | | | fixes #5863
* input: Introduce basic hyprland HID classesVaxry2024-05-0339-566/+1443
| | | | | | 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.
* config: add absolute monitor workspace selectors (#5848)William Gray2024-05-031-97/+132
| | | | | | | * add absolute monitor workspace selectors * implement absolute for `r` * format code
* inputmgr: dont double free on hotplug (#5855)Tom Englund2024-05-032-1/+1
| | | | | | | | | | | | | | * 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.
* output-management: move to new implVaxry2024-05-0313-135/+779
|
* internal: fix a few asan reported leaks on exit of hyprland (#5852)Tom Englund2024-05-038-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* config: added option to choose the default monitor for the cursor (#5847)Ikalco2024-05-032-14/+42
| | | | | | | * added option to choose the default monitor that the cursor will appear in upon startup * fix: don't set cursor to default monitor after startup * refactor to checkDefaultCursorWarp also fix focus
* format: fix clang-formatVaxry2024-05-031-24/+24
|
* windowrules: Fix Floating Grouped Windows Crash and Bug. (#5826)Gabriel Ford2024-05-031-2/+2
| | | | | | | | | * Don't unhide grouped items. * Remove head check as that wasn't always correct. * Replace lock with expired() * Remove set hidden from max size.
* virtual-pointer: move to new implVaxry2024-05-0310-21/+274
|
* virtual-keyboard: destroy on vdestroy eventVaxry2024-05-032-0/+8
|
* virtual-keyboard: move to new implVaxry2024-05-0311-67/+255
|
* cursor-shape: use - instead of _ in shapesVaxry2024-05-022-24/+24
| | | | ref #5824
* fractional: set scale before configureVaxry2024-05-021-0/+3
| | | | fixes #5842
* cursormgr: attempt using - instead of _ for failed cursors before fallbackVaxry2024-05-021-0/+8
| | | | web uses -, and thus some themes might use - too. Attempt replacing _ with - before assuming a shape is missing.
* layout: limit updates when mouse animate drag is enabled (#5838)thejch2024-05-021-1/+1
|
* internal: store matched windowrules and emit eventVaxry2024-05-024-7/+12
| | | | new event for plugins, windowUpdateRules
* protocols: utilize hyprwayland-scanner 0.3.3 functionsVaxry2024-05-0121-147/+104
| | | | stuff like ::version(), ::client(), ::error() etc
* ime-v2: move to new implVaxry2024-05-0119-267/+714
|
* socket2: fix empty activewindowv2 eventsVaxry2024-05-012-3/+3
| | | | fixes #5827
* layout: Trigger layout recalcuation on deco position/size change (#5821)zakk42232024-05-012-6/+2
| | | | | | | * Trigger layout recalcuation on deco position/size change * Remove now unneeded code * Formatting
* sessionLock: remove m_pLastFocus on destroy of surfaceVaxry2024-05-011-0/+4
| | | | fixes #5822
* sessionLock: call wlr_surface_map/_unmap on the surface manuallyVaxry2024-04-302-2/+7
| | | | | | fixes unmapped subsurfaces etc ref #5816
* sessionLock: set locked after emitting eventVaxry2024-04-301-2/+2
| | | | ref #5816
* sessionLock: fix incorrect protocol error raisedVaxry2024-04-301-1/+1
| | | | fixes #5816
* keybinds: check for special workspace equality before switchingVaxry2024-04-301-1/+2
| | | | fixes #5814
* session-lock: move to new implVaxry2024-04-3011-145/+419
|
* CrashReporter: unbreak build on FreeBSD (#5786)Jan Beich2024-04-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | * CrashReporter: skip Linux field on BSDs after 90a53aed59be In file included from src/debug/CrashReporter.cpp:10: src/debug/signal-safe.hpp:113:17: error: no member named 'sa_restorer' in 'sigaction' act.sa_restorer = NULL; ~~~ ^ * CrashReporter: ensure *argv[] is NULL-terminated after 90a53aed59be execv() may fail with EFAULT otherwise. * hyprpm: add missing header after 335015fe2def hyprpm/src/core/PluginManager.cpp:165:43: error: use of undeclared identifier 'getuid' 165 | const std::string USERNAME = getpwuid(getuid())->pw_name; | ^ hyprpm/src/core/PluginManager.cpp:431:45: error: use of undeclared identifier 'getuid' 431 | const std::string USERNAME = getpwuid(getuid())->pw_name; | ^ hyprpm/src/core/PluginManager.cpp:558:43: error: use of undeclared identifier 'getuid' 558 | const std::string USERNAME = getpwuid(getuid())->pw_name; | ^
* hyprctl: add missing json string escapes (#5811)Sungyoon Cho2024-04-301-8/+9
|
* pluginAPI/hooks: Remove dependency on cc from the hooksystem (#5801)Vaxry2024-04-301-77/+40
| | | | | | | | | * Remove dependency on cc from the hooksystem * Nix: remove cc from wrapper --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* layerSurface: refactor/move to a memory-safe implVaxry2024-04-3026-864/+874
| | | | | Makes all the pointers smart to avoid memory issues Refactors layerSurface code to live inside desktop/layersurface
* cursor-shape: allow duplicate devices per pointer resourceVaxry2024-04-302-11/+5
| | | | fixes #5798
* ext-idle-notify: move to new implVaxry2024-04-2910-31/+184
|
* xdg-activation: move to new implVaxry2024-04-299-25/+156
|
* hyprctl: make commits wrapped in quotes in jsonVaxry2024-04-291-1/+1
|
* log: Add some colors to stdout log 🔴🟡🟢🔵🟣 (#5778)thejch2024-04-293-9/+32
| | | | | | | * add colored log * add config option * make it dynamic
* wlr-output-power: move to new implVaxry2024-04-2911-26/+141
|
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-287-22/+43
| | | | | | Moves the directory containing sockets and logs. Also restructures lockfiles a bit. For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
* hooksystem: check for existing random outdirVaxry2024-04-281-1/+7
|
* compositor: more fs safety around tmp directoriesVaxry2024-04-281-2/+19
| | | | HIS now includes a random bit, and hyprland will bail if /tmp/hypr is not a directory or if /tmp/hypr/his exists
* core: prefer mkdir over create_directory and permissionsVaxry2024-04-282-10/+11
|
* hooksystem: use a random 700 directory for assemblerVaxry2024-04-281-10/+17
|
* tokenmgr: separate getRandomUUID from registerNewTokenVaxry2024-04-282-1/+8
|