summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-11-12 17:58:24 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-17 11:26:11 +0100
commitb0839d05a60e59dfa2722e13586a4857a295d4fd (patch)
treeb73b797e5c2d49daf1dff7b9847826f56984abd7 /src/input.c
parent710ce5f7d25c96fed0390227d75f28f0c662a1fa (diff)
downloadratpoison-b0839d05a60e59dfa2722e13586a4857a295d4fd.zip
Add xrandr support
Drop deprecated xinerama support and replace it with xrandr. Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input.c b/src/input.c
index 51443e8..8566e32 100644
--- a/src/input.c
+++ b/src/input.c
@@ -446,7 +446,7 @@ read_single_key (KeySym *keysym, unsigned int *modifiers, char *keysym_name, int
int nbytes;
XGetInputFocus (dpy, &focus, &revert);
- set_window_focus (current_screen()->key_window);
+ set_window_focus (rp_current_screen->key_window);
nbytes = read_key (keysym, modifiers, keysym_name, len);
set_window_focus (focus);
@@ -515,7 +515,7 @@ update_input_window (rp_screen *s, rp_input_line *line)
line->length);
gcv.function = GXxor;
- gcv.foreground = s->fg_color ^ s->bg_color;
+ gcv.foreground = rp_glob_screen.fg_color ^ rp_glob_screen.bg_color;
lgc = XCreateGC (dpy, s->input_window, GCFunction | GCForeground, &gcv);
/* Draw a cheap-o cursor - MkIII */
@@ -537,12 +537,12 @@ ring_bell (void)
GC lgc;
XGCValues gcv;
XWindowAttributes attr;
- rp_screen *s = current_screen ();
+ rp_screen *s = rp_current_screen;
XGetWindowAttributes (dpy, s->input_window, &attr);
gcv.function = GXxor;
- gcv.foreground = s->fg_color ^ s->bg_color;
+ gcv.foreground = rp_glob_screen.fg_color ^ rp_glob_screen.bg_color;
lgc = XCreateGC (dpy, s->input_window, GCFunction | GCForeground, &gcv);
XFillRectangle (dpy, s->input_window, lgc, 0, 0, attr.width, attr.height);
@@ -570,7 +570,7 @@ get_more_input (char *prompt, char *preinput, int history_id,
{
/* Emacs 21 uses a 513 byte string to store the keysym name. */
char keysym_buf[513];
- rp_screen *s = current_screen ();
+ rp_screen *s = rp_current_screen;
KeySym ch;
unsigned int modifier;
rp_input_line *line;