From 60e76cf932e7b4d240af1f994a868e9f587c056d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 29 Nov 2015 10:58:18 -0500 Subject: Add swaybar basics This should make the bar open and appear as the panel, once sway supports panels. Right now it crashes sway! --- swaybg/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'swaybg') diff --git a/swaybg/main.c b/swaybg/main.c index 69d718c5..b60c80e9 100644 --- a/swaybg/main.c +++ b/swaybg/main.c @@ -49,12 +49,10 @@ int main(int argc, const char **argv) { sway_log(L_INFO, "Using output %d of %d", desired_output, registry->outputs->length); int i; struct output_state *output = registry->outputs->items[desired_output]; - struct window *window = window_setup(registry, 100, 100, false); + struct window *window = window_setup(registry, output->width, output->height, false); if (!window) { sway_abort("Failed to create surfaces."); } - window->width = output->width; - window->height = output->height; desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); list_add(surfaces, window); -- cgit v1.2.3-54-g00ecf