summaryrefslogtreecommitdiff
path: root/src/xwayland/Server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-30/+30
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-1/+1
|
* ci: correct tar command for xz compression & fix typos (#11213)xqso2025-07-251-1/+1
|
* xwayland: Don't leave shell process (#10802)Vladimir-csp2025-06-211-1/+1
|
* xwayland: pad pid with leading zeroes in lockfilevaxerski2025-06-041-2/+3
| | | | fixes #10652
* xwayland: refactor class member vars (#10312)davc0n2025-05-071-43/+43
| | | | | * xwayland: refactor class member vars * xwayland: fix pure wayland build
* compositor: refactor class member vars (#10141)davc0n2025-04-221-3/+3
|
* xwayland: Cleanup server startup and FDs (#9769)Lee Bousfield2025-03-281-19/+5
|
* xwl: dont close the fd to early (#9715)Tom Englund2025-03-241-5/+5
| | | | dont close the fd until the wl_event_source is removed, so we dont get another event triggered with an already closed fd.
* XWayland: restore the abstract socket, and make it optional (#9615)Andrei V2025-03-191-15/+46
| | | | | | | | | | | * Revert "xwayland: don't create an abstract unix domain socket on linux (#8874)" (#9574) This reverts commit 2b01a5bcf62956a5d641a3367edcd35e103edfcd. * xwayland: make the abstract Unix domain socket optional (#9574) * xwayland: extend the default permissions for a regular Unix domain socket (#9574) * xwayland: a little refactoring for `createSocket`
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-111/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* xwayland: don't create an abstract unix domain socket on linux (#8874)Clayton2024-12-281-7/+0
|
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-2/+2
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* core: Add clang-tidy (#8664)Vaxry2024-12-071-8/+7
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* cleanup: Revert use doLater instead of adding idle event handlers (#8624)vaxerski2024-12-031-4/+8
| | | | This reverts commit 6d7544458d0fafcae410c1978a0cabce2fb4a346.
* cleanup: use doLater instead of adding idle event handlers (#8624)Ikalco2024-12-011-8/+4
|
* xwayland: minor fixups for stability (#8323)trianta2024-11-031-12/+13
| | | | | | | * xwayland: add inline safe closing of fds and fix LOCK_FILE_MODE permissions * xwayland: auto recreate xwayland instance if it crashes * xwayland: delay auto-restart until later
* xwayland: use proper path for the XWayland sockets (#7852)Arisa Snowbell2024-09-191-2/+2
| | | fixes #7849
* xwayland: Some readability improvements (#7807)Jasson2024-09-181-89/+105
| | | | | | | | | | | | | * Readability improvements xwayland server * Made requested changes * removed braces * fix * Ok this time is fixed * Formatting
* xwayland: add option to enable/disable xwayland (#7633)trianta2024-09-051-1/+2
| | | | | | | | | | | | | | | | | | | * config: add xwayland enabled option to config * xwayland: use DISPLAY env variable for enable/disable of new launches * xwayland: close X11 windows when turning of XWayland * clang: format fix * config: add better description for xwayland:enabled * xwayland: close X11 windows on disable without crashes * xwayland: better method of informing CXWayland if xwayland enabled * xwayland: prevent closing non-xwayland windows on disable * misc: loop formatting
* core: Include cstring whenever strncpy is used (#7267)Zach DeCook2024-08-101-0/+1
| | | Fixes ppc64le build in alpine
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-5/+6
| | | | | | | | | | | | | | 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>
* xwayland: use safeRemove for removing filesVaxry2024-06-151-5/+13
| | | | fixes #6514
* xwayland: don't destroy server clientVaxry2024-06-031-2/+3
| | | | | | this potentially leaks, but avoids a UAF ref #6323
* xwayland: move to hyprland impl (#6086)Vaxry2024-05-251-0/+427