summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* syncobj: use eventfd instead of stalling fd checks (#9437)Tom Englund2025-03-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * syncobj: cleanup and use uniqueptrs cleanup a bit missing removals if resource not good, erasing from containers etc. make use of unique ptrs instead. and add default destructors. * syncobj: rework syncobj entirerly remove early buffer release that was breaking explicit sync, the buffer needs to exist until the surface commit event has been emitted and draw calls added egl sync points, move to eventfd signaling instead of stalling sync point checks, and recommit pending commits if waiting on a signal. add a CDRMSyncPointState helper class. move a few weak pointers to shared pointers so they dont destruct before we need to use them. * syncobj: queue pending states for eventfd eventfd requires us to queue pending stats until ready and then apply to current, and also when no ready state exist commit the client commit on the current existing buffer, if there is one. * syncobj: clear current buffer damage clear current buffer damage on current buffer commits. * syncobj: cleanup code and fix hyprlock remove unused code, and ensure we dont commit a empty texture causing locksession protocol and gtk4-layer-shell misbehaving. * syncobj: ensure buffers are cleaned up ensure the containers having the various buffers actually gets cleaned up from their containers, incase the CSignal isnt signaled because of expired smart pointers or just wrong order destruction because mishaps. also move the acquire/point setting to buffer attaching. instead of on precommit. * syncobj: remove unused code, optimize remove unused code and merge sync fds if fence is valid, remove manual directscanout buffer dropping that signals release point on pageflip, it can cause us to signal the release point while still keeping the current buffer and rendering it yet again causing wrong things. * syncobj: delay buffer release on non syncobj delay buffer releases on non syncobj surfaces until next commit, and check on async buffers if syncobj and drop and signal the release point on backend buffer release. * syncobj: ensure we follow protocol ensure we follow protocol by replacing acquire/release points if they arrive late and replace already existing ones. also remove unneded brackets, and dont try to manual lock/release buffers when it comes to explicit protocol. it doesnt care about buffer releases only about acquire and release points and signaling them. * syncobj: lets not complicate things set points in precommit, before checking protocol errors and we catch any pending acquire/release points arriving late. * syncobj: move SSurfaceState to types remove destructor resource destroying, let resources destroys them on their events, and move SSurfaceStates to types/SurfaceState.hpp * syncobj: actually store the merged fd have to actually store the mergedfd to use it. * syncobj: cleanup a bit around fences ensure the current asynchronous buffer is actually released on pageflip not the previous. cleanup a bit FD handling in commitPendingAndDoExplicitSync, and reuse the in fence when syncing surfaces. * syncobjs: ensure fence FD doesnt leak calling resetexplicitfence without properly ensuring the FD is closed before will leak it, store it per monitor and let it close itself with the CFileDescriptor class. * syncobj: ensure buffers are actually released buffers were never being sent released properly. * types: Defer buffer sync releaser until unlock * syncobj: store directscanout fence in monitor ensure the infence fd survives the scope of attemptdirectscanout so it doesnt close before it should have. * syncobj: check if if acquire is expired we might hit a race to finish on exit where the timeline just has destructed but the buffer waiter is still pending. and such we removeAllWaiters null dereferences. * syncobj: code style changes remove quack comment, change to m_foo and use a std::vector and weakpointer in the waiter for removal instead of a std::list. * syncobj: remove unused async buffer drop remove unused async buffer drop, only related to directscanout and is handled elsewhere. --------- Co-authored-by: Lee Bousfield <ljbousfield@gmail.com>
* renderer: add simple color management (#9506)UjinT342025-03-141-2/+27
| | | Adds proper color management and transformations for CM surfaces.
* groupbar: add an option to adjust gap sizes (#9578)phonetic1122025-03-121-0/+2
|
* input: fix touch calibration matrix overridingKhalid J.2025-03-111-2/+2
| | | | | make the default behavior non-overriding to avoid overriding user-set values elswehere.
* windowrules: add option to allow size persistence between app launches (#9422)nyx2025-03-081-0/+15
|
* master: add option to keep master window position (#9537)nyx2025-03-061-0/+1
|
* input: add flip_x and flip_y for touchpad (#9481)nyx2025-03-031-0/+4
|
* protocols: Support wp color management proto (#9444)UjinT342025-02-261-0/+1
| | | Adds support for the recently merged w-p CM protocol alongside the (now deprecated) old CM WIP protocols
* hyprctl/config: fixup config descriptions, fill out missing ones, provide ↵Vaxry2025-02-251-318/+392
| | | | | | more data adds current and explicit, better parsing, and fixes missing / invalid ones
* config: fix a possible crash in the monitor config parser (#9460)cyanbun962025-02-231-4/+9
| | | | | * Less crash-prone monitor config parser * clang-format
* core: add an ANR dialogVaxry2025-02-181-0/+1
| | | | | | for xdg-shell, we can ping the wm_base, and thus render an ANR dialog if an app dies for XWayland, there probably is a similar method, but I don't know about it and don't care.
* input: add follow_mouse_threshold (#9392)andrewandreii2025-02-171-0/+1
|
* config: set no_hw_cursors to auto by default and disable on tearingVaxry2025-02-151-2/+3
| | | | when tearing, updates to the overlay plane may be ignored by the kernel. To avoid the cursor being a slideshow, disable hw cursors
* config: actually set initial beziers (#9400)Maximilian Seidler2025-02-131-3/+3
|
* config: default movefocus_cycles_fullscreen to falseVaxry2025-02-091-1/+1
| | | | less confusing
* config: fix includesVaxry2025-02-021-2/+2
|
* protocols: Support content-type-v1 proto (#9226)UjinT342025-02-021-3/+21
|
* render: enforce framebuffer offloading and remove introspection toggle (#9217)nyx2025-01-311-1/+0
|
* groupbar: various visual improvementsVaxry2025-01-311-1/+6
| | | | added rounding, round at edges, and indicator height
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-301-4/+0
| | | | | | | * declare dtor once + DMABBUF typo fix * dup include + clang moment * linux-dmabuf: last minute nit change
* config/hyprctl: fix keyword not updating autoreloadvaxerski2025-01-291-2/+6
| | | | ref #9139
* configmgr: properly free glob memoryTom Englund2025-01-281-2/+8
| | | | | globfree is only freeing internally allocated resources, so also call free the on glob_t memory we allocated.
* core: make persistent workspaces always follow the configVaxry2025-01-261-0/+8
| | | | | | instead of just staying after open, they will now be enforced on their respective monitors fixes #8769
* config: disable borderangle by default (#9165)Maximilian Seidler2025-01-251-0/+1
|
* core: add --verify-config to verify the config with HyprlandVaxry2025-01-241-7/+23
| | | | fixes #9135
* config: fix misc:disable_autoreloadVaxry2025-01-241-1/+2
| | | | fixes #9139
* configmgr: fix crash on very early plugin loadsVaxry2025-01-231-1/+2
|
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-5/+5
|
* config/ConfigManager.cpp: add instruction to edit config (#9130)amnesiacsardine2025-01-221-1/+1
|
* xwayland: fix crash when trying to initialize without Xwayland installed (#9077)Zach DeCook2025-01-201-16/+6
|
* config: fix float animation speeds < 0 (#9123)Maximilian Seidler2025-01-201-1/+1
|
* core: move to inotify for monitoring the config filesvaxerski2025-01-191-55/+15
| | | | | | instead of manually polling every second which is not efficient, use inotify. an added bonus is that inotify is much much faster
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-2/+13
| | | Cleanup some unneeded includes to speed up compilation
* renderer: unload background texture if it's disabledvaxerski2025-01-141-2/+3
| | | | ref #9031
* config: add exec(-onec) with rules and execr(-once) (#8953)littleblack1112025-01-111-4/+47
|
* core: Add render:allow_early_buffer_release to make buffer release ↵UjinT342025-01-101-0/+1
| | | | configurable (#9019)
* core: Add a periodic donation request (#8981)Vaxry2025-01-101-0/+1
| | | Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
* config: fix animations requiring all argsvaxerski2025-01-091-0/+5
| | | | fixes #9009
* core: use cpu-buffer hw cursors on nvidia by defaultvaxerski2025-01-081-3/+3
|
* config: update animation even if disabledvaxerski2025-01-071-23/+21
|
* core: Add support for HDR and color management protocols (#8715)UjinT342025-01-071-0/+4
|
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-108/+60
| | | | | | | | | | | | | * 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
* master: add option to show slaves on left in center orientation (#8940)Zetta1 Reid02025-01-071-0/+1
| | | Co-authored-by: Zetta1_Reid0 <11255-Zetta1_Reid0@users.noreply.gitlab.xfce.org>
* renderer: Add supercircular window corners (#8943)Pollux2025-01-051-0/+1
| | | | | | | renderer: Add supercircular shadows and borders config: Add rounding_power to default and example configs rule: add `roundingpower` window rule
* config: avoid querying the fs every tickvaxerski2025-01-021-14/+18
|
* ctm: disable fade animation by default on nvidiavaxerski2024-12-301-0/+1
| | | | Fixes #8891, the nvidia driver dies when we spam CTM too much.
* master: replace always_center_master with slave_count_for_center_master (#8871)khushal-solves2024-12-291-1/+1
| | | | | | | | | - Replaced boolean config parameter `always_center_master` to an integer value `slave_count_for_center_master` for more control on when to center master window. - Also updated configuration parameter, type, description and related internal variable. New description: **when using orientation=center, make the master window centered only when at least this many slave windows are open. (Set 0 to always_center_master)** This effects center orientation of master layout. Now, user can control when the master window would be centered
* ctm: add an internal fade animation to ctm transitionsvaxerski2024-12-291-0/+4
|
* core: refactor/improve monitor mode selection (#8804)Ikalco2024-12-281-2/+2
|
* debug: add debug:pass for debugging the render passVaxry2024-12-221-0/+1
|