mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
Fixed a bug with reloading disabled icons
This commit is contained in:
parent
3c86cd2c13
commit
06b31f2a5a
1 changed files with 8 additions and 4 deletions
|
@ -525,12 +525,16 @@ int CStatusBar::drawTrayModule(SBarModule* mod, int off) {
|
|||
|
||||
int i = 0;
|
||||
for (auto& tray : g_pWindowManager->trayclients) {
|
||||
|
||||
if (tray.hidden)
|
||||
continue;
|
||||
|
||||
uint32_t values[] = {(int)(position.x + (i * (ELEMENTWIDTH + PAD)) + PAD / 2.f), (int)position.y + 1, (int)XCB_STACK_MODE_ABOVE};
|
||||
|
||||
if (tray.hidden) {
|
||||
values[0] = -999;
|
||||
values[1] = -999;
|
||||
xcb_configure_window(g_pWindowManager->DisplayConnection, tray.window,
|
||||
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||
continue;
|
||||
}
|
||||
|
||||
xcb_configure_window(g_pWindowManager->DisplayConnection, tray.window,
|
||||
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||
|
||||
|
|
Loading…
Reference in a new issue