[SelectionClear] = xselclear,
[SelectionNotify] = xselnotify,
[SelectionRequest] = xselrequest,
- [PropertyNotify] = xpropnotify,
[ClientMessage] = xclientmsg,
[ConfigureNotify] = xresize,
- [Expose] = xexpose,
};
/******************************************************************************/
}
}
+static struct XSel* selfetch(Atom atom) {
+ for (int i = 0; i < (sizeof(Selections) / sizeof(Selections[0])); i++)
+ if (atom == Selections[i].atom)
+ return &Selections[i];
+ return NULL;
+}
+
/******************************************************************************/
static WinRegion getregion(size_t x, size_t y) {
XftColorAllocValue(X.display, X.visual, X.colormap, &(xc->color), xc);
}
-static struct XSel* selfetch(Atom atom) {
- for (int i = 0; i < (sizeof(Selections) / sizeof(Selections[0])); i++)
- if (atom == Selections[i].atom)
- return &Selections[i];
- return NULL;
-}
-
static void get_position(WinRegion id, int x, int y, size_t* row, size_t* col) {
int starty = (id == EDIT ? Divider+3 : 0);
int startx = (id == EDIT ? ScrollWidth+3 : 0);
static void xfocus(XEvent* e) {
if (X.xic)
(e->type == FocusIn ? XSetICFocus : XUnsetICFocus)(X.xic);
-// Buf* buf = win_buf(EDIT);
-// if (buf->path && buf->modtime != modtime(buf->path))
-// view_append(win_view(TAGS), "File modified externally: Get {Put }");
}
static void xkeypress(XEvent* e) {
0, &s);
}
-static void xpropnotify(XEvent* e) {
-}
-
static void xclientmsg(XEvent* e) {
if (e->xclient.data.l[0] == XInternAtom(X.display, "WM_DELETE_WINDOW", False))
win_quit();
}
}
-static void xexpose(XEvent* e) {
-}
-
/******************************************************************************/
static uint32_t special_keys(uint32_t key) {