From b0839d05a60e59dfa2722e13586a4857a295d4fd Mon Sep 17 00:00:00 2001 From: Mathieu OTHACEHE Date: Sat, 12 Nov 2016 17:58:24 +0100 Subject: Add xrandr support Drop deprecated xinerama support and replace it with xrandr. Signed-off-by: Mathieu OTHACEHE --- src/manage.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/manage.c') diff --git a/src/manage.c b/src/manage.c index 412fc29..2faab71 100644 --- a/src/manage.c +++ b/src/manage.c @@ -154,21 +154,6 @@ grab_keys_all_wins (void) } } -rp_screen* -current_screen (void) -{ - int i; - - for (i=0; ileft, s->top, s->left + s->width, s->top + s->height));} - if (rp_have_xinerama + if (rp_have_xrandr && ((attr.x > s->left + s->width) || (attr.x < s->left) || (attr.y > s->top + s->height) @@ -901,7 +883,7 @@ hide_window (rp_window *win) XSelectInput (dpy, win->w, WIN_EVENTS); /* Ensure that the window doesn't have the focused border color. This is needed by remove_frame and possibly others. */ - XSetWindowBorder (dpy, win->w, win->scr->bw_color); + XSetWindowBorder (dpy, win->w, rp_glob_screen.bw_color); set_state (win, IconicState); } -- cgit v1.2.3