patrick96
fe9660254c
Merge remote-tracking branch 'upstream/master' into tray-child-window
2022-09-04 11:46:32 +02:00
patrick96
901183a60a
tray: Fix tray not updating after (un)map_notify
...
The issue was that the event was for the wrapper window and that the
tray_client's move constructors didn't correctly copy over all data and
so when the m_clients vector grew, it corrupted the state of all
existing clients.
2022-09-03 22:34:00 +02:00
patrick96
1127792ccf
tray: Update module using callback
2022-09-03 21:33:22 +02:00
patrick96
b72458a6b0
tray: Load settings from module section
2022-09-03 20:56:32 +02:00
patrick96
03a2e6bb17
tray: Read width directly from tray_manager
2022-08-28 15:29:36 +02:00
patrick96
ffcdf7d690
tray: Start tray from module
2022-08-28 15:15:48 +02:00
patrick96
1dcff9396a
tray: Stop listening to ui::visibility_change
...
If the bar window (un)maps, the tray icons are automatically (un)mapped
2022-08-28 15:05:22 +02:00
patrick96
de560fe810
tray: Remove mutex
2022-08-28 14:56:56 +02:00
patrick96
d658c07177
tray: Cleanup tray settings
2022-08-28 14:49:09 +02:00
patrick96
ef06472a6d
tray: Remove tray window
...
Each tray client is directly reparented to the bar window. This saves us
the hassle of having to configure a basically useless tray window and
keeping its background pixmap in sync.
The only disadvantages are having to (un)map each client window
individually and calculating its position relative to the bar window
(which changes all the time) instead of relative to the tray window
(which only changes when clients are added/removed).
2022-08-27 23:02:34 +02:00
Ashwin Rajesh
7838241a77
feat(tokens): Negative minimum length adds right padding ( #2801 )
...
* negative minimum length adds right padding
* missing else statement
* updated changelog
2022-08-25 00:36:38 +02:00
Dave
6ccecbfca2
feat(temperature): Add zone-type
setting ( #2752 )
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
2022-08-21 19:25:42 +02:00
Quantenzitrone
708bd9c891
feat(temperature): %temperature-k% token for Kelvin ( #2784 )
...
* added kelvin option for module/temperature
* changelog for the changes i made
* fixed typos
* fixed the temperature conversion to be more precise
* Update CHANGELOG.md
Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
* changed the calculation of the different temperatures
it now uses float as a initial value and makes m_temp temp_k and temp_f by converting and rounding with std::round
* std::lround makes more sense to use than std::round
Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
2022-08-21 19:10:48 +02:00
patrick96
dca9e15339
tray: Store position relative to inner area
2022-07-26 21:33:28 +02:00
patrick96
9c759549c6
tray: Remove background_manager
...
The tray window uses the pixmap of the bar window and clears window
content on every update.
2022-07-26 00:01:21 +02:00
patrick96
4bbb28baaf
Merge remote-tracking branch 'upstream/master' into tray-child-window
2022-07-25 23:40:45 +02:00
Patrick Ziegler
f4d0ba9186
config_parser: Pass barname as argument to parse() ( #2765 )
...
Doesn't need to be a class field
2022-07-09 13:12:37 +02:00
Tuur Vanhoutte
98d584c8fe
Also monitor include-files for changes when --reload is set ( #2759 )
...
* fixes #675
* feat(configwatcher): method to create config monitor handler
* cleanup
Co-authored-by: patrick96 <p.ziegler96@gmail.com>
2022-07-09 12:24:21 +02:00
raffael0
a20f76d7e5
fix: tray flickers due to excessive redrawing/visibility changing ( #2747 )
...
Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
2022-07-09 09:09:55 +02:00
raffael0
9f4e88c07d
fix: tray isn't visible when a module updates ( #2742 )
2022-07-09 08:45:09 +02:00
raffael0
f3e27a205e
backlight: auto-detect default card ( #2728 )
...
* auto-detect a default backlight
* Implemented suggestions
* added changelog
* Implemented suggestions
* Fix changelog formatting
Co-authored-by: patrick96 <p.ziegler96@gmail.com>
2022-06-16 12:54:38 +02:00
raffael0
b2c5d8e0e2
tray: implement hiding functionality ( #2723 )
...
* tray hiding works
* clang-format
* Implemented suggestions
2022-06-16 12:53:49 +02:00
raffael0
86f2baa550
tray: remove tray-position = adaptive ( #2726 )
...
The tray is automatically started if there is a tray module. In addition, `tray-position` and the tray module conflict.
Ref #2689
2022-06-15 11:09:13 +02:00
raffael0
6a43758b5b
tray is no longer pushed off the bar ( #2727 )
2022-06-14 15:35:49 +02:00
Maxim Kolesnikov
0331a5fda4
fix: error reporting for deprecated config values ( #2725 )
2022-06-12 16:31:11 +02:00
patrick96
46358792e0
fix(build): Changes in inotify module
2022-05-04 11:09:55 +02:00
patrick96
7a1824a9b9
Merge remote-tracking branch 'origin/hotfix/3.6.3'
2022-05-04 11:08:12 +02:00
Patrick Ziegler
f653c3a738
fix(pulse): Hanging during connection setup ( #2709 )
...
If context_state_callback is called before we call
pa_threaded_mainloop_wait in the main thread, the signal is lost and we
wait forever.
Fixes #2707
Ref #2699
Ref #2697
2022-05-04 08:58:53 +02:00
Mathis Weber
423cc1720f
fs: fallback if no mountpoints specified ( #2705 )
...
Ref #2572
2022-05-02 12:54:03 +02:00
Patrick Ziegler
efbd8e394f
fix(bar): Update struts when hiding ( #2702 )
...
When the bar is hidden, the struts should be 0 so that WMs can resize
their windows and not leave a gap.
Ref #2701
2022-04-27 21:09:59 +02:00
marxlaml
6a2d7b5dde
feat(backlight): Add scroll-interval
( #2700 )
...
Closes #2696
* Added `scroll-interval` option to `internal/backlight`
* Added PR to CHANGELOG.md
* Fixed indentation
2022-04-27 19:53:06 +02:00
Patrick Ziegler
bc9dda266f
fix(xworkspaces): Update on _NET_DESKTOP_VIEWPORT ( #2698 )
...
Fixes #2693
2022-04-25 17:46:53 +02:00
Mathis Weber
b5292791ef
fix: check if double click action associated ( #2695 )
...
When a module is clicked, only wait for the double click interval if a
double click action is associated with that module. Otherwise trigger
the click right away.
Fixes : #2663
2022-04-25 12:59:40 +02:00
patrick96
d743a22817
--wip-- [skip ci]
2022-04-16 00:20:00 +02:00
patrick96
9ad73da05f
tray: Remove calculate_client_x
2022-04-16 00:16:50 +02:00
patrick96
bdfe655556
tray: Reuse bar visual
2022-04-16 00:16:50 +02:00
patrick96
81d1f74b7b
Move client configuration into tray_client
2022-04-16 00:16:50 +02:00
patrick96
48d8187f90
Collect bar window, visual, and depth in bar_settings
2022-04-16 00:16:50 +02:00
patrick96
b5c742a63e
Use connection.root() to get root window
2022-04-16 00:16:50 +02:00
patrick96
6043f856b6
controller: Keep only eventloop in try-catch
...
If an exception is thrown earlier, stopping the eventloop produces an
error.
2022-04-16 00:16:49 +02:00
patrick96
9b1afe7369
Cleanup selection of visual for bar window
2022-04-16 00:16:49 +02:00
patrick96
b8c275d6ac
Fix BadMatch error for wrapper window
...
The wrapper window must define a border background if the depth doesn't
match the parent window.
2022-04-16 00:16:49 +02:00
patrick96
3711e999ba
Use individual wrapper window for each tray client
2022-04-16 00:16:49 +02:00
patrick96
9544130b9c
Fix screen messing up if client docking fails
...
The client window has to be added to the save set after it has been
reparented. Otherwise if the reparenting fails weird stuff happens
(windows in the save set have to be child windows of windows created by
the current connection).
2022-04-16 00:16:49 +02:00
patrick96
ab7612ea4a
tray: Make m_clients exclusive owner of clients
2022-04-16 00:16:49 +02:00
patrick96
ab2b5f603c
Use bar window depth for tray pixmap
2022-04-16 00:16:49 +02:00
patrick96
6fa85d2ce8
Remove unused parameter
2022-04-16 00:16:48 +02:00
patrick96
7acd4c703c
xcb: Cleanup value packing
2022-04-16 00:16:48 +02:00
patrick96
ba0e478026
Cleanup tray position handling
2022-04-16 00:16:44 +02:00
patrick96
3244b10ce3
Make tray window a bar subwindow
...
Currently requires a dirty workaround to prevent tray icons with
different depths from crashing
2022-04-16 00:13:53 +02:00