mirror of
https://github.com/swaywm/sway.git
synced 2024-11-28 19:01:29 +00:00
swaybar: Make swaybar a shell surface
This commit is contained in:
parent
942585a012
commit
a11cdefa3c
|
@ -80,13 +80,15 @@ void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id) {
|
|||
|
||||
struct output_state *output = bar_output->registry->outputs->items[bar_output->idx];
|
||||
|
||||
bar_output->window = window_setup(bar_output->registry, output->width, 30, false);
|
||||
bar_output->window = window_setup(bar_output->registry, output->width, 60, false);
|
||||
if (!bar_output->window) {
|
||||
sway_abort("Failed to create window.");
|
||||
}
|
||||
desktop_shell_set_panel(bar_output->registry->desktop_shell, output->output, bar_output->window->surface);
|
||||
desktop_shell_set_panel_position(bar_output->registry->desktop_shell, bar->config->position);
|
||||
|
||||
window_make_shell(bar_output->window);
|
||||
|
||||
/* set font */
|
||||
bar_output->window->font = bar->config->font;
|
||||
|
||||
|
|
Loading…
Reference in a new issue