summaryrefslogtreecommitdiffstats
path: root/swaybar/bar.c
diff options
context:
space:
mode:
authorLibravatar Calvin Lee <cyrus296@gmail.com>2017-10-31 12:42:08 -0600
committerLibravatar Calvin Lee <cyrus296@gmail.com>2017-12-29 12:11:51 -0700
commit5c8dc9cb73be8b3fde25475dbc3e5f931f73f642 (patch)
tree31f4530c20519dc052afa45e35192a1b3e2998df /swaybar/bar.c
parentReply in case of object path item (diff)
downloadsway-5c8dc9cb73be8b3fde25475dbc3e5f931f73f642.tar.gz
sway-5c8dc9cb73be8b3fde25475dbc3e5f931f73f642.tar.zst
sway-5c8dc9cb73be8b3fde25475dbc3e5f931f73f642.zip
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.c2
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) {
247 247
248 /* set window height */ 248 /* set window height */
249 set_window_height(bar_output->window, bar->config->height); 249 set_window_height(bar_output->window, bar->config->height);
250
251 bar_output->state = output;
250 } 252 }
251 /* spawn status command */ 253 /* spawn status command */
252 spawn_status_cmd_proc(bar); 254 spawn_status_cmd_proc(bar);