fix calculation of window position on multihead

Conflicts:
	dunst.c
This commit is contained in:
Sascha Kruse 2012-08-15 21:21:22 +02:00
parent 4a5778ec2f
commit da718c4998

View File

@ -587,9 +587,9 @@ void draw_win(void)
} }
if (geometry.mask & YNegative) { if (geometry.mask & YNegative) {
y = (scr.dim.h + geometry.y) - dc_height * font_h; y = scr.dim.y + (scr.dim.h + geometry.y) - dc_height * font_h;
} else { } else {
y = 0 + geometry.y; y = scr.dim.y + geometry.y;
} }
/* move and map window */ /* move and map window */
@ -1105,8 +1105,6 @@ void update_screen_info()
int n; int n;
int screen = scr.scr; int screen = scr.scr;
XineramaScreenInfo *info; XineramaScreenInfo *info;
#endif
#ifdef XINERAMA
if ((info = XineramaQueryScreens(dc->dpy, &n))) { if ((info = XineramaQueryScreens(dc->dpy, &n))) {
screen = select_screen(info, n); screen = select_screen(info, n);
if (screen >= n) { if (screen >= n) {