summaryrefslogtreecommitdiff
path: root/src/managers
Commit message (Collapse)AuthorAgeFilesLines
...
* IPC: Add config descriptions (#7377)Vaxry2024-08-171-8/+3
| | | | | | | 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.
* 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
* xcursor: handle file errors when loading xcursor themes (#7326)Ikalco2024-08-151-1/+4
|
* cursormgr: fix cursor gsettings on session change (#7295)Ikalco2024-08-134-4/+10
|
* 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.
* pointermgr: fix initial cursorwarp (#7286)Tom Englund2024-08-112-4/+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.
* core: Include cstring whenever strncpy is used (#7267)Zach DeCook2024-08-101-0/+1
| | | 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-092-0/+60
| | | | | | 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 .
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-084-7/+7
| | | | | | | | | | | | | | | | | | | | 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
* 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.
* 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
|
* input: fix leds on kb creation (#7206)Ikalco2024-08-071-0/+2
|
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-062-1/+2
| | | | | 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
* 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.
* sessionLock: don't sendLocked when session lock has already been destoyed ↵Maximilian Seidler2024-08-021-3/+4
| | | | | | | (#7150) * sessionLock: reset m_pSessionLock on destroy * sessionLock: only send locked when resource is good
* keybinds: allow toggling fullscreenstate (#7128)MightyPlaza2024-08-011-3/+7
| | | modified: src/managers/KeybindManager.cpp
* core/surface/buffer: Buffer lock/release fixes (#7110)Vaxry2024-07-311-13/+37
|
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bezier: dont loop on float values Using a floating-point loop variable with a fixed increment can cause precision errors over time due to the nature of floating-point arithmetic. and cause undesired effects. ex iteration 1 = 0.10000000149011611938 iteration 2 = 0.20000000298023223877 eventually.. iteration 8 = 0.80000001192092895508 iteration 9 = 0.89999997615814208984 * hyprctl: close sockets on destruction store socketpath and close the fd and unlink the socket path on exit. * eventloopmgr: close the timerfd close the timerfd on exit. * debug: make logging thread safe instead of opening and closing the logfile on each write open it on init and close it on compositor exit. also add a mutex so accidently using logging from a thread like the watchdog or similiar doesnt cause issues. * xwl: clean up fd logic check if the fd is actually opened before closing, and close the pipesource FD on exit.
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-315-39/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* keybinds: handle null monitor in pinActive (#7122)André Silva2024-07-311-2/+10
|
* protocols: Move globalshortcuts impl (#7102)Ikalco2024-07-303-10/+6
| | | | | | | * move global shortcuts to hyprwayland-scanner * remove wayland-scanner from deps * fix the thing
* pointer: use preMonitorCommit for resetting render stateVaxry2024-07-301-1/+1
| | | | in DS preRender is not called
* core/surface: fixup a few pointer handling edge casesVaxry2024-07-291-0/+4
|
* protocols: move text-input-v1 to hyprwayland-scanner (#7096)Ikalco2024-07-296-71/+52
| | | | | * move text-input-v1 to hyprwayland-scanner * vro
* virtualptr: map to entire screen if no output is providedVaxry2024-07-291-2/+18
| | | | fixes #6749
* virtualptr: allow binding to outputVaxry2024-07-291-0/+10
|
* input: fix keyboard leds with multiple keyboards (#7079)Sungyoon Cho2024-07-281-1/+8
|
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-273-65/+46
| | | | | | | | modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
* input: refocus last window on keyboard unfocusable surfacesvaxerski2024-07-271-0/+7
| | | | fixes #4460
* protocols: move screencopy and toplevel export to hyprwayland-scanner (#7065)Ikalco2024-07-272-6/+7
| | | | | * move screencopy and toplevel export to hyprwayland-scanner * oops
* config: avoid using initial ws tracking for exec-onceVaxry2024-07-251-1/+1
|
* keybinds: add safeguard to mousebinds (#7034)MightyPlaza2024-07-251-4/+5
| | | modified: src/managers/KeybindManager.cpp
* input: don't simulate mouse movement on focus change in follow_mouse = 2/3 ↵Anton Lazarev2024-07-251-9/+22
| | | | if no_warps is false (#7015)
* keybinds: handle monitor change in moveWindowIntoGroup (#7030)MightyPlaza2024-07-241-0/+5
| | | modified: src/managers/KeybindManager.cpp
* core: Properly shutdown wl display (#7018)Ikalco2024-07-244-1/+62
| | | | | | | * correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
* keybinds: remove toggleopaque (#7024)MightyPlaza2024-07-242-13/+0
| | | | modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp
* keybinds: add bindp and noshortcutsinhibit (#7017)MightyPlaza2024-07-242-3/+5
|
* touch: fix touch swipe invert config (#7014)Leon2024-07-241-1/+1
|
* pointer/hw: rollback the swapchain on multiple renders without a commitVaxry2024-07-222-6/+21
| | | | fixes the hack
* pointer/hw: extend cursor swapchain to 3Vaxry2024-07-221-1/+4
| | | | otherwise on some commits we draw twice and we draw over the front buffer
* debug: get rid of useless 1s in logs (#6969)Ikalco2024-07-222-5/+5
| | | | | * get rid of 1s in logs lol * replace WLR with AQ in logs
* virtual-pointer: fixup virtual pointer warp eventsVaxry2024-07-221-1/+1
| | | | fixes #6976
* wayland/output: avoid sending events to dead outputsVaxry2024-07-221-3/+5
| | | | ref #6835
* touch: set lastInputTouch on every eventVaxry2024-07-221-2/+6
|