diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-29 10:58:18 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-29 10:58:18 -0500 |
commit | 60e76cf932e7b4d240af1f994a868e9f587c056d (patch) | |
tree | b5d634bd193ee35993c93a59e15cf8e864f78908 /swaybg | |
parent | 63cf8e48c4cffb9a6ef661ae73699bbc7bad8e37 (diff) | |
download | sway-60e76cf932e7b4d240af1f994a868e9f587c056d.tar.xz |
Add swaybar basics
This should make the bar open and appear as the panel, once sway
supports panels. Right now it crashes sway!
Diffstat (limited to 'swaybg')
-rw-r--r-- | swaybg/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |