polybar/src
patrick96 c8f7dc1c14 fix(i3): Properly render non-full-width windows
Without override-redirect, i3 will not allow you to have a
non-full-width bar. But polybar simply ignores that request and
continues to render the user-requested width instead of the width i3 has
configured the window to be.

With the 3.7 release, we started setting the window's backing pixmap to
the rendering pixmap. In the case above, the pixmap would only be
allocted for the smaller width and when i3 maps the window, it repeats
the backing pixmap to fill the entire window.

At the point where i3 maps the window, the pixmap contains an initial
render of the bar without module content and that render is then
duplicated.

Reverting back to the old approach of simply copying over the pixmap
after each render does not have that problem and the remainder of the
bar is black (or fully transparent with a compositor).

Ideally, polybar would respect the width i3 configures for it, but that
would break many existing setups that rely on non-full-width bars in i3

Fixes #3060
2024-02-18 19:02:30 +01:00
..
adapters script: Bump poll timeout to 250ms 2022-12-12 00:52:13 +01:00
cairo Move utf8 conversion code to string utils 2023-05-10 17:06:00 +02:00
components fix(i3): Properly render non-full-width windows 2024-02-18 19:02:30 +01:00
drawtypes fix(label): Misbehaving min-length tokens with non-ASCII characters (#3090) 2024-02-10 12:51:34 +01:00
events refactor(signals): Avoid reinterpret_cast 2017-01-01 20:31:09 +01:00
ipc Merge remote-tracking branch 'upstream/master' into tray-child-window 2022-10-31 23:30:07 +01:00
modules fix: Modules did not validate tags used in formats 2023-11-16 22:29:00 +01:00
tags feat(tray): Position using a module (#2595) 2022-04-15 23:50:04 +02:00
utils fix(bspwm): Restack against topmost root window. 2023-10-08 21:04:29 +02:00
x11 Remove tray_visibility signal 2023-11-11 04:01:26 +01:00
CMakeLists.txt Introduce restacking utilities 2023-05-15 14:44:50 +02:00
main.cpp Remove config singleton (#2951) 2023-05-01 14:58:52 +02:00
polybar-msg.cpp fix(ipc): Crash when sending to multiple instances 2022-10-23 14:19:26 +02:00
settings.cpp.cmake feat(temperature): Add `zone-type` setting (#2752) 2022-08-21 19:25:42 +02:00