summaryrefslogtreecommitdiff
path: root/src/protocols
Commit message (Collapse)AuthorAgeFilesLines
...
* protocols: ensure PointerConstraints activation occurs only after attched to ↵Bruno Krügel2025-04-191-3/+3
| | | | InputManager (#10096)
* ctm: enable fade animation on nvidia driver versions 575 and above (#10095)fazzi2025-04-181-2/+7
| | | | | * ctm: enable fade animation on nvidia driver versions 575 and above * format if statement without braces; handle potential throw when checking for nvidia version file
* desktop: Damage subsurface when position changes (#10094)Lee Bousfield2025-04-161-1/+3
|
* time: move to stl's clocks and move timerVaxry2025-04-1614-71/+61
|
* core: wait for dmabuf readiness (#9806)Ikalco2025-04-163-9/+84
| | | | | | | | | * add doOnReadable to event loop manager * move syncTimeline addWaiter to doOnReadable * wait on dmabuf buffers to be readable * don't over synchronize in scanout, also give present feedback on same buffer commit
* windowrules: allow incrementing window props (#9566)MightyPlaza2025-04-162-0/+2
|
* compositor/surface: fix surface opaque and input regions not being updated ↵Ikalco2025-04-121-4/+4
| | | | (#10055)
* screencopy: Handle explicit sync failure (#10050)Lee Bousfield2025-04-121-9/+10
|
* core: fix crash in data device on shutdown (#9997)Ikalco2025-04-091-1/+1
|
* Permission Manager: add permission management for screencopy (#9930)Vaxry2025-04-082-32/+81
|
* core: refactor and improve surface commit (#9805)Ikalco2025-04-0713-208/+270
| | | | | | | | | | | | | | | | | | | | | | | * make CHLBufferReference not a SP anymore * copy over release and acquire points in CHLBufferReference * use CHLBufferReference in screencopy and toplevel export TODO: use CHLBufferReference in direct scanout properly the only problem is the scanout buffer release timing, specifically the onBackendRelease mechanism * cleanup SSurfaceState and surface pending commit tracking * move surface code from DRMSyncobj, and move acquire to SSurfaceState * use queue for comitted pending surface states like proto says "The content update is placed in a queue until it becomes active." - wl_surface::commit * drop, not release, prev buffer if 2nd buffer wl_surface.attach is sent "A wl_buffer that has been attached and then replaced by another attach instead of committed will not receive a release event, and is not used by the compositor." - wl_surface::attach
* DataDevice: position icon at cursor hotspot (#9895)nyx2025-04-061-3/+7
| | | | | | * DataDevice: position icon at cursor hotspot ref: https://wayland.app/protocols/wayland#wl_data_device:request:start_drag
* ctm: fix crash when finishing ctm progress with a destroyed monitor (#9835)Maximilian Seidler2025-04-031-1/+2
|
* socket2: add minimized event for foreign-wlrVaxry2025-03-301-0/+25
| | | | ref #995
* protocols: Don't update hdr metadata if image description is unchanged (#9776)Lee Bousfield2025-03-303-3/+9
|
* core: Don't damage the entire surface every frame (#9763)Lee Bousfield2025-03-281-8/+12
| | | | | | | * core: Don't damage the entire surface every frame * core: Damage buffer on dims or transform change * core: Use guards for scale and tr equality checks
* surfacestate: reset buffer bit before applying to currentVaxry2025-03-281-0/+1
| | | | fixes #9759
* internal: fix minor ubsan errors (#9743)Tom Englund2025-03-261-2/+5
| | | | | | | | | | | | | | | | | | | | | * opengl: check if g_pHyprOpengl exist on compositor destruction we can hit a race where a CEGLSync destructs and tries to call eglDestroySyncKHR on a null g_pHyprOpengl. /src/render/OpenGL.cpp:3019:32: runtime error: member access within null pointer of type 'struct CHyprOpenGLImpl' #0 0x555565eed979 in CEGLSync::~CEGLSync() /src/render/OpenGL.cpp:3019 #1 0x555565f6271e in std::default_delete<CEGLSync>::operator()(CEGLSync*) const /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/unique_ptr.h:93 * xdgshell: dont apply state on empty states setsize can be called before a state has been added to pending, resulting in calling ApplyState with a empty state. /src/protocols/XDGShell.cpp:323:11: runtime error: null pointer passed as argument 2, which is declared to never be null #0 0x5555659bf67e in CXDGToplevelResource::applyState() /src/protocols/XDGShell.cpp:323 #1 0x5555659bcedc in CXDGToplevelResource::setSize(Hyprutils::Math::Vector2D const&) /src/protocols/XDGShell.cpp: 256 #2 0x555563eed0ef in Events::listener_commitWindow(void*, void*) /src/events/Windows.cpp:841
* surfacestate: track and apply updated stateVaxry2025-03-264-20/+85
| | | | fixes #9729
* seat: avoid sending null surfaces in leave/enter eventsVaxry2025-03-241-5/+5
| | | | ref #9699
* core/Compositor.hpp: fix non-relative Texture import (#9703)entailz2025-03-231-1/+1
|
* core/compositor: Fix dropping cursor buffer data early (#9700)Lee Bousfield2025-03-222-2/+4
|
* core/compositor: Correctly track SHM buffer damage (#9678)Lee Bousfield2025-03-229-66/+85
|
* screencopy, render: Use explicit sync for screencopy (#9697)Lee Bousfield2025-03-223-24/+39
| | | | | | | * screencopy, render: Use explicit sync for screencopy * screencopy: Check if explicit sync is enabled * screencopy: Don't require explicit KMS enabled
* syncobj: refactor point timelines (#9689)Tom Englund2025-03-212-54/+18
| | | | no need to store the resource, just store the csynctimeline as a shared pointer and make the timeline own the syncobj fd.
* types: Upgrade buffer ref from WP to SP (#9677)Lee Bousfield2025-03-202-3/+3
|
* syncobj: restore SHM buffer reset (#9675)Tom Englund2025-03-201-5/+3
| | | | | reset shm buffers early to mitigate stuttering animations, also reuse the monitors eglSync and store the eglsync per monitor. this however reintroduces flickering in dbeaver nonsyncobj application.
* dmabuf: pop buffer on failure (#9620)Tom Englund2025-03-191-0/+1
| | | | ensure it doesnt permanently gets stuck in the container on failure, pop it from the container.
* ci: Fail on warnings (#9668)Lee Bousfield2025-03-192-2/+6
| | | | | * ci: Fail on warnings * misc: Fix compiler warnings
* internal: Fix compiler warnings (#9646)Lee Bousfield2025-03-175-10/+4
|
* syncobj: dont crash compositor on protocol errors (#9627)Tom Englund2025-03-151-4/+9
| | | | dont call a member on null pointer if client misbehaves. as in the weak pointer being expired.
* protocols: fix includeVaxry2025-03-142-2/+2
|
* syncobj: use eventfd instead of stalling fd checks (#9437)Tom Englund2025-03-1416-168/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-143-60/+95
| | | Adds proper color management and transformations for CM surfaces.
* renderer: skip ds commits if buffer didn't change (#9556)Ikalco2025-03-083-16/+11
| | | | this fixes direct scanout glitches by ensuring that attemptDirectScanout doesn't try to recommit the same buffer to AQ which would cause a pageflip event and the backendRelease to release the same buffer too early
* protocols: Fix blocked color management get_information (#9563)Lee Bousfield2025-03-074-8/+8
|
* protocols: Fix cursor shape protocol valid shape check (#9547)Lee Bousfield2025-03-061-1/+1
|
* input: add flip_x and flip_y for touchpad (#9481)nyx2025-03-031-0/+1
|
* protocols: Fix IWaylandProtocol onDisplayDestroy m_pGlobal double-free (#9507)Lee Bousfield2025-02-281-2/+6
|
* internal: fix include paths (#9500)Tuur Vanhoutte2025-02-273-6/+6
| | | | | * Fix include path in Monitor.hpp * fix more includes
* protocols: fix relative includeVaxry2025-02-261-2/+2
|
* protocols: Support wp color management proto (#9444)UjinT342025-02-269-238/+1500
| | | Adds support for the recently merged w-p CM protocol alongside the (now deprecated) old CM WIP protocols
* xwayland: improve dnd and cleanup (#9405)nyx2025-02-242-26/+38
| | | | | | | Minor changes to xwayland dnd / regular dnd to fix various issues --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* core: add an ANR dialogVaxry2025-02-182-0/+15
| | | | | | 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.
* syncobj: ensure we only add waiters on succesful checks (#9412)Tom Englund2025-02-152-3/+3
| | | | | | timeline check only returns nullopt on ETIME_ERR , meaning the if check later on returns true if drmSyncobjTimelineWait returns anything else like EINVAL/EPERM/EACCESS etc, so actually check the returned .value() of the std::optional. also move the fd to rvalue references.
* protocols: add version 2 of ext-idle-notify-v1 protocol (#8959)J. J. Ramsey2025-02-112-11/+24
| | | | Signed-off-by: James Ramsey <james.jehiel.ramsey@gmail.com> Co-authored-by: James Ramsey <james.jehiel.ramsey@gmail.com>
* datadevice: fix wrong param (#9370)Honkazel2025-02-081-1/+1
| | | Reason: look at the setReceive parameters and also at the next line(tries to narrow)
* renderer: various fixes towards improving gpu calls robustness (#9188)Tom Englund2025-02-082-0/+12
| | | | | | | | | | | | | | ensure framebuffer textures are detached and deleted, avoid leaving framebuffers bound when not needed * render: avoid calling glDeleteProgram on no program its safe to do so but it adds a bunch of unnecessery lines in apitrace when tracing. if guard it and return early. * opengl: ensure texture and buffers are unbound ensure bound buffers are unbound after use, also detach textures from framebuffer before deleting it otherwise it will become dangling and essentially leak.
* toplevelexport: fix transformed origin for shm buffers (#9343)WhySoBad2025-02-061-1/+24
| | | | | * toplevelexport: fix transformed origin for shm buffers * toplevelexport: fix style nits
* config: fix includesVaxry2025-02-021-1/+1
|