summaryrefslogtreecommitdiff
path: root/src/protocols/core/DataDevice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* data/dnd: guard against expired dndPointerFocus and ensure consistent usage ↵Visal Vijay2026-04-051-4/+4
| | | | (#13996)
* event: refactor HookSystem into a typed event bus (#13333)Vaxry2026-02-221-16/+12
| | | | | Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-36/+36
|
* protocols/datadevice: avoid double leaveVaxry2025-12-111-0/+7
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12494
* desktop: cleanup, unify desktop elements as views (#12563)Vaxry2025-12-081-2/+2
|
* cursor: refactor override handling (#12166)Vaxry2025-10-311-4/+5
| | | much cleaner and more reliable. Should fix https://github.com/hyprwm/Hyprland/issues/12088
* protocols/core: round dnd drop surface boxVaxry2025-10-291-1/+1
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-1/+1
|
* dnd: drop on tablet pen tip up (#11270)Maxime Nordier2025-07-301-0/+9
|
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-101-1/+1
| | | | | lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
* core: use new typed signals from hu (#10853)outfoxxed2025-07-081-4/+4
|
* pass: overload TexPass constructorTom Englund2025-07-071-1/+1
| | | | | overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable.
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-3/+3
|
* xwayland: refactor class member vars (#10312)davc0n2025-05-071-4/+4
| | | | | * xwayland: refactor class member vars * xwayland: fix pure wayland build
* render: refactor class member vars (#10292)davc0n2025-05-051-1/+1
| | | | | * render: refactor class member vars * render: fix clang format
* protocols: refactor class member vars (types) (#10261)davc0n2025-05-031-3/+3
|
* protocols: refactor class member vars (core) (#10259)davc0n2025-05-031-208/+208
|
* managers: refactor class member vars (#10242)davc0n2025-05-021-21/+21
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-1/+1
|
* compositor: refactor class member vars (#10141)davc0n2025-04-221-1/+1
|
* time: move to stl's clocks and move timerVaxry2025-04-161-5/+2
|
* core: fix crash in data device on shutdown (#9997)Ikalco2025-04-091-1/+1
|
* 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
* xwayland: improve dnd and cleanup (#9405)nyx2025-02-241-25/+37
| | | | | | | Minor changes to xwayland dnd / regular dnd to fix various issues --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* 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)
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * hyprctl: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * ikeyboard: make fd use CFileDescriptor make use of the new CFileDescriptor instead of manual FD handling, also in sendKeymap remove dead code, it already early returns if keyboard isnt valid, and dont try to close the FD that ikeyboard owns. * core: make SHMFile functions use CFileDescriptor make SHMFile misc functions use CFileDescriptor and its associated usage in dmabuf and keyboard. * core: make explicit sync use CFileDescriptor begin using CFileDescriptor in explicit sync and its timelines and eglsync usage in opengl, there is still a bit left with manual handling that requires future aquamarine change aswell. * eventmgr: make fd and sockets use CFileDescriptor make use of the hyprutils CFileDescriptor instead of manual FD and socket handling and closing. * eventloopmgr: make timerfd use CFileDescriptor make the timerfd use CFileDescriptor instead of manual fd handling * opengl: make gbm fd use CFileDescriptor make the gbm rendernode fd use CFileDescriptor instead of manual fd handling * core: make selection source/offer use CFileDescriptor make data selection source and offers use CFileDescriptor and its associated use in xwm and protocols * protocols: convert protocols fd to CFileDescriptor make most fd handling use CFileDescriptor in protocols * shm: make SHMPool use CfileDescriptor make SHMPool use CFileDescriptor instead of manual fd handling. * opengl: duplicate fd with CFileDescriptor duplicate fenceFD with CFileDescriptor duplicate instead. * xwayland: make sockets and fds use CFileDescriptor instead of manual opening/closing make sockets and fds use CFileDescriptor * keybindmgr: make sockets and fds use CFileDescriptor make sockets and fds use CFileDescriptor instead of manual handling.
* renderer/internal: stop using box pointersVaxry2025-01-261-1/+1
| | | | in favor of const refs
* input: abord dnd op on escape pressedVaxry2025-01-241-0/+6
| | | | ref #9154
* core: add LIKELY and UNLIKELY macrosvaxerski2025-01-171-9/+9
| | | | helps the compiler optimize
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+4
| | | Cleanup some unneeded includes to speed up compilation
* datadevice: guard XWayland server against crashesvaxerski2025-01-061-1/+1
| | | | | | The server might be dead or restarting, and we'd deref null ref #7822
* dnd/seat: avoid sending button events during a dnd opvaxerski2025-01-021-1/+1
| | | | fixes #8781
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-1/+6
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* data-device: fix edge case crash on null xwmVaxry2024-12-211-6/+8
| | | | fixes #8787
* xwayland: Support cross DnD from Wayland (#8708)Vaxry2024-12-151-30/+121
| | | Adds support for drag-and-drop from Wayland clients to XWayland ones
* core/data: Use pointer focus for DnD operations (#8707)Vaxry2024-12-141-13/+26
| | | fixes #7737
* data-device: fixup wrong box expansionVaxry2024-12-121-2/+2
| | | | oopsie 7c03e9d376abe5308c47772b4c17a9c345788f60 was wrong
* core/data-device: expand damage region to fix minor px errorsVaxry2024-12-111-1/+1
| | | | fixes #7656
* core: Add clang-tidy (#8664)Vaxry2024-12-071-2/+2
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-1/+1
| | | | | * move monitors to sp * XD
* data-device: conform to reported source actionsvaxerski2024-09-171-3/+18
| | | | fixes #7815
* data-device: don't send default action of moveVaxry2024-09-141-3/+1
| | | | gtk doesn't like it?
* data-device: send clock time in motion eventsVaxry2024-09-141-1/+4
| | | | remove hack
* data-device: send dndFinished when dnd offer is destroyed while unfinishedVaxry2024-08-281-0/+8
| | | | | | | | fixes #7496 see https://invent.kde.org/plasma/kwin/-/commit/711c5bb43f2823766d5189dc8d567c8f4cec253c see https://bugs.kde.org/show_bug.cgi\?id\=482142
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-1/+1
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-261-4/+4
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* protocols: refactor protocol logging to a macro (#7324)Tom Englund2024-08-151-2/+0
| | | | | | 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/surface/buffer: Buffer lock/release fixes (#7110)Vaxry2024-07-311-4/+4
|
* data-device: minor fixesVaxry2024-06-171-7/+7
| | | | send leave after drop, improve checks in completeDrag
* data-device: properly abort drag on missing deviceVaxry2024-06-161-3/+5
| | | | | | sometimes there is no focused device (e.g. when dnd'ing on nothing or xwayland) in which case abort would fail to send cancelled to the source. ref #6543