diff options
| author | Calvin Lee <cyrus296@gmail.com> | 2017-10-31 12:42:08 -0600 |
|---|---|---|
| committer | Calvin Lee <cyrus296@gmail.com> | 2017-12-29 12:11:51 -0700 |
| commit | 5c8dc9cb73be8b3fde25475dbc3e5f931f73f642 (patch) | |
| tree | 31f4530c20519dc052afa45e35192a1b3e2998df /swaybar/bar.c | |
| parent | 2f1eb30c380a81e712095accddd77815a920a547 (diff) | |
Correct context menu placement if bar is bottom
Originally the context menu would draw at the top of the screen, which
is incorrect.
Diffstat (limited to 'swaybar/bar.c')
| -rw-r--r-- | swaybar/bar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index f12923a8..9cd17303 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -247,6 +247,8 @@ void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id) { /* set window height */ set_window_height(bar_output->window, bar->config->height); + + bar_output->state = output; } /* spawn status command */ spawn_status_cmd_proc(bar); |
