summaryrefslogtreecommitdiff
path: root/src/managers/EventManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.