aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-18 20:35:06 -0400
committerJesse Luehrs <doy@tozt.net>2014-07-04 22:39:07 -0400
commita516f21b1f2bb25ae31ceebba9664e0eb0ebc37f (patch)
treeedfe0a3120803e00ce731ac18e54b3af5f9cfdd8 /src/window-xlib.c
parent1e100849574dc7d0659e51053a18f3683499e85d (diff)
downloadrunes-a516f21b1f2bb25ae31ceebba9664e0eb0ebc37f.tar.gz
runes-a516f21b1f2bb25ae31ceebba9664e0eb0ebc37f.zip
store this on the screen
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index af5b2b8..e497d34 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -871,11 +871,11 @@ static void runes_window_backend_stop_selection(
if (start->row == end->row && start->col == end->col) {
XSetSelectionOwner(w->dpy, XA_PRIMARY, None, time);
- w->has_selection = 0;
+ t->scr.has_selection = 0;
}
else {
XSetSelectionOwner(w->dpy, XA_PRIMARY, w->w, time);
- w->has_selection = (XGetSelectionOwner(w->dpy, XA_PRIMARY) == w->w);
+ t->scr.has_selection = (XGetSelectionOwner(w->dpy, XA_PRIMARY) == w->w);
}
}
@@ -983,11 +983,9 @@ static void runes_window_backend_handle_selection_notify_event(
static void runes_window_backend_handle_selection_clear_event(
RunesTerm *t, XSelectionClearEvent *e)
{
- RunesWindowBackend *w = &t->w;
-
UNUSED(e);
- w->has_selection = 0;
+ t->scr.has_selection = 0;
}
static void runes_window_backend_handle_selection_request_event(