sway: waybar is not shown sometimes on master branch
-
Sway Version:
- branch based on master commit 23389ebd
-
Configuration File: relevant bit:
bar bar1 {
id bar1
swaybar_command waybar -b bar1
mode hide
modifier $mod
}
exec waybar -b bar1
- Description:
when waybar is configured to be shown only on $mod key press, it fails to appear after a window is created in that workspace.
switching to another workspace and hitting the $mod summons waybar as expected. even if I switch back to the original workspace, waybar is still shown while I keep $mod pressed. pressing it again does not show waybar in this workspace. no logs nor errors are reported when the key is pressed.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
This is a waybar bug. When waybar is trying to show/hide when pressing the mod key, it doesn’t unmap the surface, it instead commits a completely transparent buffer. However, waybar does not update the transparency status of the buffer and still claims it’s opaque.
WLR_SCENE_DISABLE_VISIBILITY=1doesn’t work because that only disables one optimization. We have a second optimization that will set the blend mode to NONE if the surface is supposed to be opaque.Thanks, I can reproduce.