diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | mcwm.c | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -4,6 +4,8 @@ User visible changes 2011-11-17 + * Fixed bug with topright command on other physical screens. + * -b no longer boolean. Now takes parameter number of pixels. 2011-08-15 @@ -2676,6 +2676,7 @@ void topright(void) { int16_t pointx; int16_t pointy; + int16_t mon_x; uint16_t mon_y; uint16_t mon_width; @@ -2687,11 +2688,13 @@ void topright(void) if (NULL == focuswin->monitor) { mon_width = screen->width_in_pixels; + mon_x = 0; mon_y = 0; } else { mon_width = focuswin->monitor->width; + mon_x = focuswin->monitor->x; mon_y = focuswin->monitor->y; } @@ -2702,7 +2705,9 @@ void topright(void) return; } - focuswin->x = mon_width - (focuswin->width + conf.borderwidth * 2); + focuswin->x = mon_x + mon_width - + (focuswin->width + conf.borderwidth * 2); + focuswin->y = mon_y; movewindow(focuswin->id, focuswin->x, focuswin->y); |