From ebff1ea48865514f227321df6d8bd0ac4dab7b31 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 3 Jul 2021 06:19:44 +0900 Subject: [PATCH] monitor: Update indicator geometry when monitor geometry changes The indicator geometry is not updated when the monitor geometry is changed, causing the indicator size and/or position to be wrong when the resolution or position of a monitor is changed. This commit makes sure the indicator geometry is updated when the geometry of the containing monitor is changed. --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index a9ff2bc..74fe2b5 100644 --- a/monitor.c +++ b/monitor.c @@ -309,6 +309,8 @@ int monitor_set_geometry(struct monitor *monitor, struct geom *geom) monitor->draw_buffer = mwm_create_pixmap(monitor->mwm, 0, monitor->geom.w, STATUSBAR_HEIGHT); XftDrawChange(monitor->xft_context, monitor->draw_buffer); + _indicator_update_geometry(monitor); + return(0); } -- 2.47.3