struct rxvt_display : refcounted {
Atom xa_xim_servers;
- rxvt_term *selection_owner;
-
io_manager_vec<xevent_watcher> xw;
io_watcher x_ev; void x_cb (io_watcher &w, short revents);
Visual *visual;
Colormap cmap;
Window root;
+ rxvt_term *selection_owner;
rxvt_display (const char *id);
bool init ();
default:
return;
}
+
selection.op = SELECTION_DONE;
if (selection.clicks == 4)
return;
}
- // due to MB_MAX_CUR, selection wastage is usually high, so realloc
+ // due to MB_CUR_MAX, selection wastage is usually high, so realloc
if (str - (char *)new_selection_text > 1024)
new_selection_text = (unsigned char *)rxvt_realloc (new_selection_text, i + 1);
if (XmbTextListToTextProperty (display->display, &cl, 1, XStringStyle, &ct) >= 0)
{
XChangeProperty (display->display, display->root, XA_CUT_BUFFER0, XA_STRING, 8,
- PropModeReplace, ct.value, ct.nitems);
+ PropModeReplace, ct.value, ct.nitems);
XFree (ct.value);
}
else
XChangeProperty (display->display, display->root, XA_CUT_BUFFER0, XA_STRING, 8,
- PropModeReplace, selection.text, (int)selection.len);
+ PropModeReplace, selection.text, (int)selection.len);
}
selection_time = tm;