summaryrefslogtreecommitdiff
path: root/src/render
Commit message (Collapse)AuthorAgeFilesLines
* internal: move to hyprutils' scopeguardVaxry2024-09-211-1/+3
| | | | bumps hyprutils dep to 0.2.2
* config: add order rule for layers (#7697)darkwater2024-09-091-0/+4
|
* renderer: minor direct scanout fixes (#7594)Ikalco2024-08-311-3/+6
|
* config: Add a window rule to render while unfocused (#7582)Vaxry2024-08-302-0/+54
|
* presentation-feedback: minor fixupsVaxry2024-08-301-2/+2
|
* xdg-dialog: implement new protocolVaxry2024-08-301-3/+2
|
* renderer: better lockscreen dead behavior (#7574)Vaxry2024-08-294-27/+152
| | | | | --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* renderer: fade out windows on silent movesVaxry2024-08-281-6/+15
|
* renderer: ensure buffer format on commit (#7556)Ikalco2024-08-281-0/+1
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-267-78/+78
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-262-16/+16
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* renderer: pass custom modelines to aqvaxerski2024-08-181-11/+3
| | | | ref #7390
* render: fixup format mismatch after leaving DSvaxerski2024-08-171-0/+4
| | | | fixes #7373
* 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.
* logs: Add file path to asset ERR log (#7336)davc0n2024-08-141-1/+1
|
* core: fix data race and a unsigned int rollover (#7278)Tom Englund2024-08-121-5/+5
| | | | | | | | | | | | | | | | | | * 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.
* cursor: make inactive_timeout setting a float (#7268)Walt Bringenberg2024-08-101-1/+1
|
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-085-16/+18
| | | | | | | | | | | | | | | | | | | | 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
* renderer: fixup nvidia driver version checksVaxry2024-08-071-1/+1
|
* renderer: guard layer in renderLayerVaxry2024-08-071-0/+3
| | | | ref #7181
* renderer: fixup crashes on inaccessible files for bgVaxry2024-08-061-6/+4
|
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-064-81/+148
| | | | | Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
* 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-031-1/+1
| | | | | modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp
* border: fixup infinite recursionVaxry2024-08-012-2/+14
| | | | ref #7127
* core/surface/buffer: Buffer lock/release fixes (#7110)Vaxry2024-07-313-7/+11
|
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-312-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* output: minor tearing fixesVaxry2024-07-301-5/+2
|
* output: submit damage to kmsVaxry2024-07-301-0/+2
|
* core: add a destructor to CHyprOpenglImpl and avoid wl_container_of ↵Tom Englund2024-07-292-0/+17
| | | | | | | | | | | | | | | undefined behaviour (#7101) * protocols: avoid undefined behaviour in C macro to safely use wl_container_of with a class the class has to be no virtual functions, no inheritance, and uniform access control (e.g all public) work around this by putting this into a destroywrapper struct. * opengl: clean memory on destruction add a destructor and free the allocated memory and close the fd
* egl: attempt a 3.2 egl context firstVaxry2024-07-291-3/+21
|
* egl: require gles 3.0 onlyVaxry2024-07-291-1/+1
| | | | | | No clue what could break, hopefully nothing ref #6973
* renderer: use session lock alpha for rendering lacking locksvaxerski2024-07-271-2/+3
|
* protocols: move screencopy and toplevel export to hyprwayland-scanner (#7065)Ikalco2024-07-271-1/+1
| | | | | * move screencopy and toplevel export to hyprwayland-scanner * oops
* opengl: destroy cairo image surface after usevaxerski2024-07-271-0/+2
|
* renderer: drastically optimize bg texture creationvaxerski2024-07-262-58/+86
| | | | stop loading 20MB images every time, dumbass
* egl: support getting the device via platform_deviceVaxry2024-07-242-14/+81
| | | | a neat EXT
* renderer/layer-shell: use explicitly set exclusiveEdge (#6984)Sam Lakerveld2024-07-221-3/+4
|
* egl: avoid setting debug mode and handle legacyrendererVaxry2024-07-221-2/+5
| | | | ref #6973
* renderer: untransform textures matching display transformVaxry2024-07-222-8/+15
| | | | | | fixes #6754 This will break if the client uses a transform that is not equal to the display, reverting to old behavior. Combining transforms is left as a todo for the future.
* surface: fixup logical damage size calculationsVaxry2024-07-221-1/+1
| | | | fixes #6618
* compositor: ignore setting surface scanout if DS is disabledVaxry2024-07-211-1/+1
|
* renderer: drop redundant spammy trace logVaxry2024-07-211-3/+1
|
* Core: Move to aquamarine (#6608)Vaxry2024-07-218-537/+850
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* renderer: Make shader time always count from zero (#6903)Party Wumpus2024-07-162-8/+11
| | | | | | | * testing out an initialtime variable * Make time universally start at zero instead of exposing an initial time * Appease the CI
* config: use hyprutils helper (#6891)Mihai Fufezan2024-07-161-1/+1
| | | | | | | | | | | * flake.lock: update nix/overlays: remove xwayland overlay (merged upstream) * config: use hyprutils helper * flake.lock: update * CMake & Meson: update required versions
* renderer: partially revert previous xray fix (#6868)MightyPlaza2024-07-131-1/+1
| | | modified: src/render/OpenGL.cpp
* style: fix clang-formatVaxry2024-07-131-2/+1
|
* session-lock: send `locked` after the lock screen is properly rendered (#6850)Junxuan Liao2024-07-131-0/+3
| | | | | | | | | | The protocol says: > The locked event "must not be sent until a new "locked" frame (either from a > session lock surface or the compositor blanking the output) has been presented > on all outputs and no security sensitive normal/unlocked content is possibly > visible". This helps users ensure the screen is properly locked before suspending the machine. (e.g. with swaylock --ready-fd)
* renderer: fix a few xray regressions (#6855)MightyPlaza2024-07-121-2/+2
| | | | | | | * fix xray unset modified: src/render/OpenGL.cpp * fix xwray unset modified: src/render/OpenGL.cpp