From: Matthias Kruk Date: Fri, 2 Jul 2021 21:19:44 +0000 (+0900) Subject: monitor: Update indicator geometry when monitor geometry changes X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=ebff1ea48865514f227321df6d8bd0ac4dab7b31;p=mwm 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. --- 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); }