summaryrefslogtreecommitdiff
path: root/src/debug
Commit message (Collapse)AuthorAgeFilesLines
* config: move various cursor-related vars to cursor:Vaxry2024-05-091-1/+1
|
* Tablet: move to new implVaxry2024-05-091-12/+13
| | | | Ring and strip are not implemented. Will I implement this? God fucking knows. Nobody seems to have that anyways.
* cursor: move to a hyprland implVaxry2024-05-092-3/+3
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* xkb: check value correctly with xkb_state_layout_index_is_active() (#5925)Ikalco2024-05-071-1/+1
|
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-052-10/+10
| | | | | | | | | | | 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-24/+29
| | | | | | 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.
* internal: fix a few asan reported leaks on exit of hyprland (#5852)Tom Englund2024-05-032-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* hyprctl: add missing json string escapes (#5811)Sungyoon Cho2024-04-301-8/+9
|
* hyprctl: make commits wrapped in quotes in jsonVaxry2024-04-291-1/+1
|
* log: Add some colors to stdout log 🔴🟡🟢🔵🟣 (#5778)thejch2024-04-292-8/+28
| | | | | | | * add colored log * add config option * make it dynamic
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-282-2/+2
| | | | | | 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`.
* CrashReporter: fix deadlocks by making it mostly async-signal-safe (#5771)virchau132024-04-271-75/+134
| | | | | `CrashReporter::createAndSaveCrash()` is not async-signal-safe, resulting in random deadlocks/double-crashes during Hyprland crashes. This changes the function to be (mostly) async-signal-safe.
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-21/+21
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* Protocols: implement protoLogVaxry2024-04-222-27/+40
|
* HookSystem: improve callback safetyVaxry2024-04-201-1/+1
|
* hyprctl: fix activewindow request not showing workspace name (#5623)Thomas Lindae2024-04-171-1/+1
|
* notifications: fix notifications on manually rotated monitor (#5599)FUFSoB2024-04-152-7/+11
|
* hyprctl: print monitor disabled status (#5525)JManch2024-04-101-3/+4
|
* props: Parse border color props as gradient (#5513)SoSeDiK2024-04-091-4/+18
|
* props: Allow setting per-window fullscreen opacity (#5470)SoSeDiK2024-04-071-0/+4
|
* hyprpm: add support for minimum versionsVaxry2024-04-051-2/+3
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-50/+33
| | | | | * refactor workspaces to use ptrs * clang-format
* hyprctl: fix plugin list on no plugins (#5357)Micovec2024-03-311-1/+4
|
* input: Add options to set tablet's active area (#5199)Khalid2024-03-231-1/+1
| | | | | | | | | * Add options to set tablet's active area * Set tablet's active area in `setTabletConfigs` * Fix formatting for new variables in ConfigManager * Report tablet's physical size with hyprctl
* config: Config error limit/hyprctl (#5165)zakk42232024-03-211-0/+25
| | | | | | | | | | | | | | | | | | | * Add error_limit to limit the number of config error messages shown in notification * Add configerrors hyprctl command * Formatting * Formatting for not my code * Use CVarList, add escapeJSONStrings * Add indication there are more undisplayed errors * Restore suppress_errors; move getErrors() to ConfigManager * Formatting, wtf * Format
* internal: Support libhyprcursor (#5009)Vaxry2024-03-091-10/+2
| | | | | | | woo --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* format: fix formatVaxry2024-03-091-1/+1
|
* hyprctl: hide unmapped windows without -aVaxry2024-03-082-3/+16
|
* windowrules: Make min/maxsize rules dynamic (#4775)Epilepsy Gatherings2024-03-081-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rebase * simplify and remove prop * Stuff - add back win prop - change minsize defaults - change request formatting for setprop * style fix * remove empty line * change defaults * redo string to vec * remove redundant parsing * change to vec * support commas * remove static rules * take out garbage * format * don't allow commas and resize on setprop * use isNumber
* hyprctl: Fix incorrect invalid fontsize kwarg response (#5013)ItsDrike2024-03-071-1/+1
|
* notify: Add custom fontsize support for notifications (#4981)ItsDrike2024-03-063-26/+37
| | | | | | | | | | | | | * Add custom fontsize support for notifications * Remove debug stuff * Use original default font size * Handle fontsize as keyword arg * Use CVarList::join instead of for loop * Use size_t for msgidx
* CrashReporter: Fix compilation with musl libc (#4805)Zach DeCook2024-03-051-1/+6
| | | | It can be assumed this doesn't function correctly: my 'configuration does not support execinfo.h', so I have no backtrace to test against
* hyprctl: print format and modesVaxry2024-03-051-4/+39
| | | | fixes #4971
* hyprctl: parse custom types in getoptionVaxry2024-03-041-4/+5
|
* config: improve config value infrastructureVaxry2024-03-031-2/+4
|
* keybinds: Add the 'catchall' keyword that matches all keys (#4930)Tobias Zimmermann2024-03-031-3/+5
| | | | | | | | | | | | | | | | * Add the 'catchall' keyword that matches all keys This keyword can be used to define arbitrary keybinds. The only special behavior that it exhibits is that it matches every key, including modifier keys. Any flags still apply normally. This commit also fixes an issue that keys bound via the code:KEYCODE format were not unbound correctly. * Disallow catchall keybinds outside of submaps A catchall keybind outside a submap would prevent essentially all key events from going through to applications and would be difficult to remove again.
* notifs: Implement notification dimissing (#4790)ItsDrike2024-03-023-0/+34
|
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | * animation: Refactor AnimatedVariable This commit decomposes the AnimatedVariable class into a base class with the common attribute to all variable types and a templated derived type containing strongly typed info on the type being animated. Access to the typed version is perfomed using the visitor pattern. A utility is provided to build a visitor on the fly using lambdas. Adding a new type to be animated should just be a matter of adding the typed in the list defined by the ANIMABLE_TYPES macro The size of the commit is justified by the API change in the AnimatedVariable class. No more vec(), fl() or col() method but a unified value() method. * animation: Remove visitor pattern * animation: Fix coding style * animation: Fix coding style
* hyprctl: add -r argumentVaxry2024-02-241-9/+46
|
* hyprctl: jsonify new gapsVaxry2024-02-231-3/+4
| | | | fixes #4820
* feat: Add css style gaps (#4723)Dashie2024-02-211-5/+11
|
* crashreporter: Use ~/.cache as cache dir (#4719)thejch2024-02-201-12/+9
| | | | | | | | | * use ~/.cache for crash reports * minor word edit * clang-format * minor typo
* hyprctl: reload everything on dynamic source keywordsvaxerski2024-02-191-5/+6
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-183-31/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migrate to hyprlang * pop up errors * fix swapped args * Meson & Nix: build with hyprlang * CI: add hyprlang to setup action * add infra for plugin stuff * fix hyprctl getoption * fix hyprctl getoption with json * format * fix post parse logic * fix autogen config * oops missed exec-once * fmt * fix ws rules * require 0.3.0 for hyprlang * nix: flaek * minor type fixes * fix cfg usages in swipe * use cvarlist for ws rules * fix throw in addPluginConfigVar * Nix: update hyprlang * minor fixes * fix disableLogs * mention hyprlang docs * bump hyprlang dep in cmake * Meson: bump min hyprlang version Nix: update hyprlang * minor fix * Nix: update meson patch --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* socket2: `monitoraddedv2` IPC event for monitor description and id (#4646)Jacob Birkett2024-02-151-2/+2
| | | | | | | | | * add monitor szShortDescription without DRM node name * change hyprctl to use szShortDescription * add monitoraddedv2 event * add monitor ID as first param of monitoraddedv2
* renderer: don't set solitary on present notificationsvaxerski2024-02-142-0/+5
| | | | fixes #4647
* internal: add `forcenofocus` prop (#4672)Epilepsy Gatherings2024-02-131-1/+12
| | | | | * add forcenofocus * change nofocus to overridable var
* hyprctl: fix dispatchBatch() treating empty curitem as last request (#4681)ComycSans2024-02-121-1/+1
|
* crashreporter: fix logging of function data (#4632)thejch2024-02-071-5/+23
|
* pluginapi: allow registering hyprctl commandsVaxry2024-02-052-112/+101
| | | | closes #4616