summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* input: Fix disabling tap-to-click (#7304)Sami Liedes2024-08-181-2/+3
| | | | | * Allow disabling tap-to-click * Style fix
* render: fixup format mismatch after leaving DSvaxerski2024-08-174-11/+16
| | | | fixes #7373
* IPC: Add config descriptions (#7377)Vaxry2024-08-177-13/+1491
| | | | | | | Thanks @gulafaran for the work --- Co-authored-by: @gulafaran
* xcursormgr: dont apply scale on gsettings (#7316)Tom Englund2024-08-163-17/+20
| | | | | gtk scales the cursor size itself since its CSD so if we scale the size its gonna get double scaled. incorporate the scale into xcursormanager to keep track of it.
* renderbuffer: ensure framebuffer gets deleted (#7363)Tom Englund2024-08-161-1/+2
| | | | | | after commit 4b4971c it uses m_iFbAllocated and deletes if upon calling release() but Renderbuffer generates directly on m_iFb without calling alloc() meaning it wont be deleted on release(), set m_iFbAllocated to true after generating the buffer.
* env: Add HYPRLAND_NO_SD_VARS env condition (#7358)Vladimir-csp2024-08-161-2/+6
| | | | | | | | | * Add HYPRLAND_NO_SD_VARS env condition wip #7083 * Formatting shuffle * Formatting
* protocols: refactor protocol logging to a macro (#7324)Tom Englund2024-08-1545-104/+42
| | | | | | this avoids the usage of the unique_ptr PROTO::protocol before it has been constructed incase one wants to log something inside the constructor itself, move the logging to macros and print file:linenumber on ERR,CRIT,WARN and classname on the rest of the levels.
* core: Preserve existing XDG_CURRENT_DESKTOP (#7347)Vladimir-csp2024-08-153-2/+7
| | | | | | | | | * Preserve existing XDG_CURRENT_DESKTOP * fix --------- Co-authored-by: vaxerski <vaxry@vaxry.net>
* gamma-control: fix crash on monitor disconnect (#7353)Maximilian Seidler2024-08-151-1/+1
|
* 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
* helpers: fix: revert to signed arithmetic for cycling through workspaces (#7339)Mirkwood2024-08-151-4/+4
| | | | The code clearly expects signed types there. Fixes #7329
* xcursor: handle file errors when loading xcursor themes (#7326)Ikalco2024-08-151-1/+4
|
* logs: Add file path to asset ERR log (#7336)davc0n2024-08-141-1/+1
|
* decorations: fix manual resize not recalculating decos (#7323)MightyPlaza2024-08-132-0/+4
| | | | modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp
* cursormgr: fix cursor gsettings on session change (#7295)Ikalco2024-08-135-4/+11
|
* protocols: avoid crashing in drmlease (#7290)Tom Englund2024-08-121-5/+4
| | | | | | | instead of potentially causing wonky behaviour from destructing in the constructor add the unique_ptr reset to doLater and dont use the not done constructed protolog in the constructor, call Debug::log directly. see issue #7240
* 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-127-30/+38
| | | | | | | | | | | | | | | | | | * 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.
* config: fix explicit sync option warning (#7293)Ikalco2024-08-121-4/+13
|
* pointermgr: fix initial cursorwarp (#7286)Tom Englund2024-08-113-39/+45
| | | | | | | change the hook to monitorAdded instead of newMonitor so its finalized in the compositor and added to vMonitors, move the checkDefaultCursorWarp to PointerManager and check for it upon mode change. and also ensure it doesnt go out of bounds by replacing it in the middle again on resolution changes.
* cursor: make inactive_timeout setting a float (#7268)Walt Bringenberg2024-08-102-2/+2
|
* core: Include cstring whenever strncpy is used (#7267)Zach DeCook2024-08-103-0/+3
| | | Fixes ppc64le build in alpine
* eventloop: don't dispatch in enterLoopVaxry2024-08-101-1/+0
| | | | ref #6842, BSD blocks in udev on no event apparently
* cursormgr: add a new setting to sync gsettings (#7253)Tom Englund2024-08-094-0/+62
| | | | | | cursor:sync_gsettings_theme is set to default true and if enabled it will now sync xcursor theme loading with gsettings if it can, meaning CSD clients will now also change to the appropiate theme upon start and hyprctl setcursor THEME SIZE .
* headers: set correct paths to header files (#7245)Mathis H.2024-08-091-2/+2
|
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-0838-260/+271
| | | | | | | | | | | | | | | | | | | | 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
* core: Move to C++26 and use native_handle to CLOEXEC the debug fd (#7219)Vaxry2024-08-081-0/+3
| | | | | | | Requires GCC >= 14 / Clang >= 18 --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* renderer: fixup nvidia driver version checksVaxry2024-08-071-1/+1
|
* wayland/compositor: introduce client commit eventsVaxry2024-08-073-3/+6
|
* cursormgr: avoid scanning ill formed inherit (#7211)Tom Englund2024-08-071-9/+42
| | | | | | | avoid adding ill formed Inherit lines to inherit vector and later scanning them, it wont change anything in practice but makes the inherit theme parsing more in line with what its supposed todo. also check for return values of the various string functions so we dont end up erasing the wrong thing.
* compositor: fix general:extend_border_grab_area (#7214)Agent00Ming2024-08-071-2/+2
| | | Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
* drm-syncobj: fixup fd leak with timelinesVaxry2024-08-072-0/+6
|
* compositor: minor cleanups for fading out layersVaxry2024-08-071-2/+9
|
* renderer: guard layer in renderLayerVaxry2024-08-071-0/+3
| | | | ref #7181
* xdg-shell: make xdg-positioner flip target greatest available space (#7209)outfoxxed2024-08-071-31/+62
| | | | | When both flip directions use more space than is available, pick the direction that has more space available instead of just the opposite of what was initially requested.
* cursormgr: implement inheriting themes for xcursor (#7197)Tom Englund2024-08-074-224/+286
| | | | | | | | | | | | | | | | | | | * cursormgr: reduce duplicated code add a few functions such as setCursorBuffer and setAnimationTimer to reduce duplicated code and also avoid future mishaps of forgetting to clear buffer or disarm timer. and generally reduce spaghetti even tho pasta can be delicious. * xcursormgr: implent inherited themes implent index.theme parsing and inherited themes. * cursormgr: ensure a fallback xcursor exist ensure a xcursor fallback exist otherwise it wont load the proper theme if we at launch have hyprcursor enabled and then set it to false in config and reload. also use the env var when using hyprctl setcursor incase its empty.
* keybinds: fix NoSymbol keybinds (#7199)Ikalco2024-08-071-6/+5
|
* debug: dont manually unlock the lock_guard (#7210)Tom Englund2024-08-071-1/+0
| | | | when lock_guard goes out of scope it RAII itself and calls unlock. causes crashes on freebsd/libc++ and double unlocking a mutex is UB.
* input: fix leds on kb creation (#7206)Ikalco2024-08-071-0/+2
|
* wayland/compositor: drop pending buffer ref if synchronousVaxry2024-08-061-1/+3
| | | | fixes https://github.com/hyprwm/hyprpicker/issues/85
* renderer: fixup crashes on inaccessible files for bgVaxry2024-08-061-6/+4
|
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-0624-160/+373
| | | | | Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
* cursor: Better xcursor implementation (#7178)Tom Englund2024-08-054-407/+584
| | | | | | | | | | | | | | | | | | * xcursor: bootleg xcursors into its own manager implent XCursorManager and load themes based on librarypath and its dir, now we catch all supplied theme files. and also implent animated cursors. also refactor a bit of spaghetti regarding xcursors in CursorManager. * hyprcursor: fix buffer leak animated cursors are creating a new buffer for each image, ensure we drop the buffers so it continously doesnt build up in infinity. * cursormgr: use eventloopmgr for animation use EvenloopManager for timers instead of adding it directly to m_sWLEventLoop and using its related wl_* functions.
* keybinds: improve fullscreenstate toggling (#7174)MightyPlaza2024-08-041-5/+19
| | | modified: src/managers/KeybindManager.cpp
* CMake, Meson: install config and wallpapers to DATADIR/hyprMihai Fufezan2024-08-041-3/+5
| | | | OpenGL: get wallpapers dir from DATAROOTDIR
* decorations: fix infinite recursion on no_gaps when only (#7169)MightyPlaza2024-08-033-7/+5
| | | | | modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp
* wayland/surface: fixup self-owning surface rolesVaxry2024-08-037-31/+61
| | | | fixes #7133
* core: Add missing header for libc++ after e989a0bcffac (#7158)Jan Beich2024-08-032-0/+2
| | | | | | | | | | | src/Compositor.cpp:2295:74: error: no member named 'bit_floor' in namespace 'std' 2295 | const eFullscreenMode CURRENT_EFFECTIVE_MODE = (eFullscreenMode)std::bit_floor((uint8_t)PWINDOW->m_sFullscreenState.internal); | ~~~~~^ src/Compositor.cpp:2296:74: error: no member named 'bit_floor' in namespace 'std' 2296 | const eFullscreenMode EFFECTIVE_MODE = (eFullscreenMode)std::bit_floor((uint8_t)state.internal); | ~~~~~^ src/desktop/Window.cpp:1242:34: error: no member named 'bit_floor' in namespace 'std' 1242 | return (eFullscreenMode)std::bit_floor((uint8_t)m_sFullscreenState.internal) == MODE; | ~~~~~^
* xcursor: rework bootleg xcursor (#7140)Tom Englund2024-08-022-100/+282
| | | | | | there were a bunch of missing cursors, rework the shape loading add a function to get legacyname from new wayland names. also bootleg add a cursor if no theme can be found and no shape. to atleast show something.
* hyprerror: minor stylistic changesVaxry2024-08-021-3/+3
|