mirror of
https://github.com/swaywm/sway.git
synced 2026-04-30 06:46:24 -04:00
Merge aea0d45c9d into 16e20ec251
This commit is contained in:
commit
4ba22e2bbd
17 changed files with 217 additions and 40 deletions
|
|
@ -164,6 +164,15 @@ void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id) {
|
|||
output->output, bar_output->window->surface);
|
||||
desktop_shell_set_panel_position(bar_output->registry->desktop_shell,
|
||||
bar->config->position);
|
||||
switch (bar->config->display_mode) {
|
||||
case MODE_HIDE:
|
||||
case MODE_INVISIBLE:
|
||||
desktop_shell_set_panel_hide_mode(bar_output->registry->desktop_shell, DESKTOP_SHELL_HIDE_MODES_HIDE);
|
||||
break;
|
||||
case MODE_DOCK:
|
||||
desktop_shell_set_panel_hide_mode(bar_output->registry->desktop_shell, DESKTOP_SHELL_HIDE_MODES_SHOW);
|
||||
break;
|
||||
}
|
||||
|
||||
window_make_shell(bar_output->window);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue