aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-18 21:31:35 -0400
committerJesse Luehrs <doy@tozt.net>2014-07-04 22:39:07 -0400
commitaf8dd428a3e2d5c24ea2141a3c2bcd8a0398e736 (patch)
treea08ed3cf074757a763e6b21c13403c5a02e3edfa /src/window-xlib.c
parenta516f21b1f2bb25ae31ceebba9664e0eb0ebc37f (diff)
downloadrunes-af8dd428a3e2d5c24ea2141a3c2bcd8a0398e736.tar.gz
runes-af8dd428a3e2d5c24ea2141a3c2bcd8a0398e736.zip
draw the selected region as inverse
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index e497d34..7b135c2 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -877,6 +877,8 @@ static void runes_window_backend_stop_selection(
XSetSelectionOwner(w->dpy, XA_PRIMARY, w->w, time);
t->scr.has_selection = (XGetSelectionOwner(w->dpy, XA_PRIMARY) == w->w);
}
+ t->scr.dirty = 1;
+ runes_window_backend_flush(t);
}
static struct runes_loc runes_window_backend_get_mouse_position(
@@ -986,6 +988,8 @@ static void runes_window_backend_handle_selection_clear_event(
UNUSED(e);
t->scr.has_selection = 0;
+ t->scr.dirty = 1;
+ runes_window_backend_flush(t);
}
static void runes_window_backend_handle_selection_request_event(