Commit Graph

1944 Commits

Author SHA1 Message Date
98919cbb77 Remove unused moodycamel concurrentqueue 2021-09-21 21:43:27 +02:00
c922a94b67 Remove unused spin_lock 2021-09-21 21:43:27 +02:00
0f72a2e0ea Remove unused throttle_util 2021-09-21 21:43:27 +02:00
069036fa5a Add libuv to polybar-git PKGBUILD 2021-09-21 20:36:23 +02:00
c29e4837df clang-format 2021-09-21 20:36:23 +02:00
21f6f7818a Update CHANGELOG.md 2021-09-21 20:36:23 +02:00
85d308cec8 Use libuv >= 1.3.0 2021-09-21 20:36:23 +02:00
386eb57ba7 Reopen pipe path on EOF 2021-09-21 20:36:23 +02:00
77b9cffaf8 Cleanup 2021-09-21 20:36:23 +02:00
a158f0d7ec Add error callback for ipc handle 2021-09-21 20:36:23 +02:00
52a3961602 Poll for X events in while loop
Otherwise we would only read a single event, even if multiple were
available causing delays.
2021-09-21 20:36:23 +02:00
895c1a6b51 Handle fs_event and poll errors in handle wrapper 2021-09-21 20:36:23 +02:00
db52106934 Support receiving IPC messages in multiple parts 2021-09-21 20:36:23 +02:00
dd4088910e Deprecate throttle-output and throttle-output-for
The eventloop no longer uses them. libuv will coalesces multiple
uv_async_send if they happen one after another and this also leads to
coalescing of updates.
2021-09-21 20:36:23 +02:00
511e73b3b5 Close handles in destructor 2021-09-21 20:36:23 +02:00
91759a4c96 Store all handles inside eventloop
This is needed because the handle's lifetime has to be at least the
lifetime of the eventloop since the eventloop requires the handle's
memory during shutdown (for closing the handles).
2021-09-21 20:36:23 +02:00
2551ea0205 Add wrapper for uv_async_t 2021-09-21 20:36:23 +02:00
7b5285b51e Add wrapper for uv_timer_t 2021-09-21 20:36:23 +02:00
309fd8221a Create wrapper for uv_pipe_t 2021-09-21 20:36:23 +02:00
86f02a3ebe controller: Fix missing import 2021-09-21 20:36:23 +02:00
6d3bb2211e Only trigger async once eventloop has been setup 2021-09-21 20:36:23 +02:00
2c7af2a60c Store reload flag in controller 2021-09-21 20:36:23 +02:00
ce63305c1d Better way to notify controller 2021-09-21 20:36:23 +02:00
e3cb94ef88 Use uv timer for delayed screenshot 2021-09-21 20:36:23 +02:00
6ac5b7ebdd Remove config inotify_watch
We use libuv now for watching the file
2021-09-21 20:36:23 +02:00
ba50bf0bc6 controller: Remove m_process_events field 2021-09-21 20:36:23 +02:00
75ff5c3b14 Remove exit_terminate signal 2021-09-21 20:36:23 +02:00
07da1a2967 Stop using sigabbrev_np
GNU extension
2021-09-21 20:36:23 +02:00
b9642e4cf3 Move update events to eventloop
We can now completely remove the eventqueue thread
2021-09-21 20:36:23 +02:00
f36224eaab Move quit event to eventloop 2021-09-21 20:36:23 +02:00
ba341f584e Remove CHECK event
Not used
2021-09-21 20:36:23 +02:00
c89fc7f73b Handle click commands in eventloop 2021-09-21 20:36:23 +02:00
88cd525dc8 Add wrapper for uv_pipe_t 2021-09-21 20:36:23 +02:00
9d9fe8bffb Better error handling 2021-09-21 20:36:23 +02:00
53ce1ae414 Move config watcher into eventloop 2021-09-21 20:36:23 +02:00
f9d434052a Make UV handle wrappers more generic 2021-09-21 20:36:23 +02:00
60ee63c0db eventloop: Throw exception for libuv errors 2021-09-21 20:36:23 +02:00
3cc17a0e57 Move signal handling to eventloop class 2021-09-21 20:36:23 +02:00
a2f50f3b90 Use uv_pipe_t for ipc 2021-09-21 20:36:23 +02:00
74d8cf281c cmake: Fix FindLibUV 2021-09-21 20:36:23 +02:00
ba118477e0 ci: Add libuv dependency 2021-09-21 20:36:23 +02:00
249c3ec141 Use libuv for the controller's event loop 2021-09-21 20:36:23 +02:00
0bf45f3bd6 Update PKGBUILD for 3.5.7 2021-09-21 18:37:22 +02:00
2512123a6c Merge remote-tracking branch 'origin/hotfix/3.5.7' 2021-09-21 18:22:57 +02:00
92722e05c2 Release 3.5.7 3.5.7 2021-09-21 18:12:57 +02:00
a8cba9c43c fix(ipc): Replace all %pid% tokens
Fixes #2500
2021-09-13 14:18:18 +02:00
6136c08d42 tray: Properly handle missing _XEMBED_INFO
The icon not supporting XEMBED is not fatal, we just treat is as always
mapped.

Fixes #2479
Fixes #2442
2021-09-13 00:12:33 +02:00
6816891cf1 Update Debian installation instructions (#2499) 2021-09-12 01:13:51 +02:00
5011e66346 fix(net): Check if interface is valid first. (#2497)
Fixes #2496
2021-09-09 21:47:23 +02:00
9f828800fb fix(xworkspaces): Fix scrolling (#2492)
The scroll handler had two issues:

* It did not respect the order the desktops where displayed in
* It would not wrap around on the first desktop because of an integer
  underflow

Fixes #2491
2021-09-04 14:36:01 +02:00