]> git.corax.cc Git - mwm/commitdiff
monitor: Update indicator geometry when monitor geometry changes
authorMatthias Kruk <m@m10k.eu>
Fri, 2 Jul 2021 21:19:44 +0000 (06:19 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 2 Jul 2021 21:19:44 +0000 (06:19 +0900)
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

index a9ff2bc1cac27d81c682fb042c14c93d31ae0a70..74fe2b5fdbfd4208479f3b195032c923462f5b66 100644 (file)
--- 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);
 }