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 | 8eb0e353a3e334294624ec300592598bcd03ff4b (patch) | |
tree | 88625c21c3e8ab0856e233632f2ff0498929d536 /main.c | |
parent | 500c583067f61f5bca25664ec3fe4f96e23c0a28 (diff) | |
download | swaybg-8eb0e353a3e334294624ec300592598bcd03ff4b.tar.gz swaybg-8eb0e353a3e334294624ec300592598bcd03ff4b.tar.bz2 |
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 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |