fix calculation of window position on multihead
Conflicts: dunst.c
This commit is contained in:
parent
4a5778ec2f
commit
da718c4998
6
dunst.c
6
dunst.c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user