summaryrefslogtreecommitdiff
path: root/src/protocols
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* protocols: Support content-type-v1 proto (#9226)UjinT342025-02-025-0/+211
|
* protocols: implement hyprland-ctm-control rev 2 (#9267)outfoxxed2025-02-022-2/+25
| | | | | * protocols: implement hyprland-ctm-control v2 * bump h-p and nix
* popup: take xdg geometry into account in input calcsVaxry2025-02-011-3/+1
| | | | fixes #9023
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-3022-157/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-308-44/+20
| | | | | | | * declare dtor once + DMABBUF typo fix * dup include + clang moment * linux-dmabuf: last minute nit change
* presentation: log a fixme when there is a feedback leakVaxry2025-01-281-0/+5
| | | | ref #8087
* renderer/internal: stop using box pointersVaxry2025-01-264-5/+5
| | | | in favor of const refs
* layershell: check if layer is valid (#9156)heather72832025-01-241-0/+5
| | | | fixes compositor crash when client tried to create a layer surface with invalid layer argument
* input: abord dnd op on escape pressedVaxry2025-01-242-0/+9
| | | | ref #9154
* protocols: add hyprland_surface_v1.set_visible_region implementation (#9120)outfoxxed2025-01-232-2/+26
|
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-2381-104/+53
|
* fractional-scale: avoid redundant and duplicate scale eventsVaxry2025-01-222-21/+20
| | | | fixes #9126
* protocols: add hyprland_lock_notify_v1 implementation (#9092)Maximilian Seidler2025-01-193-0/+142
|
* protocols: do not destroy screencopy resources before client request (#9048)outfoxxed2025-01-192-10/+0
|
* core: reserve vector sizes as much as we can (#9118)Tom Englund2025-01-194-2/+20
| | | | | avoid reallocations as much as possible with a few edge cases where the reservation overshoots a tiny bit. but a few bytes of memory short term is better used then the overhead of potential reallocation.
* core: fixup includesvaxerski2025-01-171-1/+1
|
* core: add LIKELY and UNLIKELY macrosvaxerski2025-01-1756-395/+391
| | | | helps the compiler optimize
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-1726-12/+37
| | | Cleanup some unneeded includes to speed up compilation
* protocols: immediately copy toplevel content when ignoreDamage set (#9049)outfoxxed2025-01-142-3/+8
| | | Also sets m_ignoreDamage, as it wasn't set before.
* protocols: allow hyprland-toplevel-export to capture hidden windows (#9041)outfoxxed2025-01-121-2/+2
|
* protocols: do not capture cursor in toplevel without pointer focus (#9042)outfoxxed2025-01-122-4/+24
|
* renderer: Do not set hdr metadata unless needed (#9014)UjinT342025-01-123-9/+34
|
* core: Add render:allow_early_buffer_release to make buffer release ↵UjinT342025-01-101-5/+10
| | | | configurable (#9019)
* windows: honor xdg_toplevel_set_fullscreen output hint (#8965)Dardo D Kleiner2025-01-092-4/+11
| | | Co-authored-by: Dardo D Kleiner <dardo.kleiner@nrl.navy.mil>
* protocols: fix compilation error (#8988)staz2025-01-081-1/+1
|
* core: Add support for HDR and color management protocols (#8715)UjinT342025-01-076-0/+1017
|
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-073-13/+13
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* core/compositor: fix too early buffer release (#8966)UjinT342025-01-061-4/+4
|
* 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
* protocols: fix alpha-modifier noncompliance (#8929)outfoxxed2025-01-022-74/+81
| | | | Also fixes small issues with hyprland-surface opacity < 1.0 while surface alpha = 1.0.
* protocols: add hyprland_surface_v1 implementation (#8877)outfoxxed2025-01-012-0/+165
|
* ctm: disable fade animation by default on nvidiavaxerski2024-12-302-0/+15
| | | | Fixes #8891, the nvidia driver dies when we spam CTM too much.
* ctm: add an internal fade animation to ctm transitionsvaxerski2024-12-292-1/+57
|
* foreign-toplevel: update active on null window focus (#8860)user1111111111111111111111111111111112024-12-271-1/+1
| | | | | | | * update ForeignTopLevel on null window focus * fix * clang
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-223-4/+12
| | | 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