summaryrefslogtreecommitdiff
path: root/src/managers/EventManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-10/+10
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-2/+2
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-1/+1
|
* managers: refactor class member vars (#10242)davc0n2025-05-021-19/+19
|
* compositor: refactor class member vars (#10141)davc0n2025-04-221-4/+4
|
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-25/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: drop using deques in favor of vectorsVaxry2024-12-161-1/+1
| | | | No point in most of these.
* core: Add clang-tidy (#8664)Vaxry2024-12-071-2/+1
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* core: Include cstring whenever strncpy is used (#7267)Zach DeCook2024-08-101-0/+1
| | | Fixes ppc64le build in alpine
* socket2: fix events being reordered (#5955)underengineering2024-05-101-93/+117
| | | | | | | | | | | | | | | | | | | * socket2: fix events being reordered * remove WL_EVENT_READABLE * initialize eventSource in SClient * add more logs oopsie * replace unordered_map with vector * fix reordering when socket becomes writable before queue is flushed * ignore EAGAIN when accepting connection * use g_pEventManager
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-281-1/+1
| | | | | | Moves the directory containing sockets and logs. Also restructures lockfiles a bit. For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
* socket2: sanitize data for newlinesVaxry2024-04-011-1/+4
|
* socket2: move to the wayland event loopVaxry2024-02-261-50/+60
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-061-3/+3
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* internal: Formatter rework (#3186)Vaxry2023-09-061-5/+5
|
* eventmanager: drop obsoleted ignore events flag (#2660)Mykola Perehudov2023-07-061-2/+2
| | | | This flag became obsoleted in commit 287e6c4ede30c8e5e85863cd85f157e17e24879c
* Avoid passing control unix socket descriptors to children (#2656)Mykola Perehudov2023-07-061-2/+2
| | | | Add SOCK_CLOEXEC flags to server side connection FDs to make them closed during execve(2).
* Close socket2 client descriptor on hangup (#2654)nexec2023-07-061-0/+2
|
* Fix broken pipe crash when event listener terminates (#2339)maqrrr2023-05-211-1/+3
|
* internal: unhardcode sun_path size after a6cfe7042897 (#2137)Jan Beich2023-04-231-1/+1
| | | | | | | | | | | hyprctl/main.cpp:83:5: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(serverAddress.sun_path, socketPath.c_str(), 107); ^ hyprctl/main.cpp:146:5: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(serverAddress.sun_path, socketPath.c_str(), 107); ^ src/managers/EventManager.cpp:70:9: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(SERVERADDRESS.sun_path, socketPath.c_str(), 107); ^
* internal: avoid buffer overflows with socket pathsvaxerski2023-04-171-1/+1
|
* socket2: receive bytes to avoid endless loopsvaxerski2023-04-081-2/+24
|
* Added clang format (#1239)Vaxry2022-12-161-13/+16
| | | * clang-format stuff and format files
* remove ensureFDsValid, legacyvaxerski2022-11-021-23/+0
|
* fix crash in event manager on hangupvaxerski2022-10-221-3/+22
|
* remove polling from socket2, fully event basedvaxerski2022-10-031-39/+34
|
* Multiple improvements to the shutdown procedurevaxerski2022-08-281-4/+6
|
* unlock the event queue before sleepingScott Barron2022-08-061-1/+1
|
* oopsvaxerski2022-07-011-2/+2
|
* limit events on socket2 to 1024 charsvaxerski2022-07-011-1/+1
|
* force workspace eventsvaxerski2022-06-291-2/+2
|
* Fixed crash on movetoworkspacesilenttaylor853452022-06-211-2/+2
|
* move ignore to eventmanager and fix double focus in changeworkspacevaxerski2022-06-211-0/+6
|
* IPC and log changes, introduce signaturevaxerski2022-06-031-4/+4
|
* use mutexes in eventmanager like a normal humanvaxerski2022-05-251-24/+8
|
* stick a newline at the end of socket2 eventsvaxerski2022-05-241-1/+1
|
* Major IPC Rework + Added Socket2vaxerski2022-05-241-0/+129
IPC is now done with UNIX sockets instead of TCP ones (security!), and added Socket2, see Wiki.