Remove dead code from XEvent handler

According to the X11 docs XSelectionNotify event is generated from a
response to the ConvertSelection protocol which we don't use.
This commit is contained in:
Nikos Tsipinakis 2018-03-19 11:37:01 +02:00
parent e52b1ae495
commit ce5c49f0e8
2 changed files with 0 additions and 6 deletions

View File

@ -193,9 +193,6 @@ gboolean x_mainloop_fd_dispatch(GSource *source, GSourceFunc callback, gpointer
draw();
}
break;
case SelectionNotify:
if (ev.xselection.property == xctx.utf8)
break;
case ButtonRelease:
if (ev.xbutton.window == xctx.win) {
x_handle_click(ev);
@ -472,7 +469,6 @@ static void x_win_setup(void)
XSetWindowAttributes wa;
root = RootWindow(xctx.dpy, DefaultScreen(xctx.dpy));
xctx.utf8 = XInternAtom(xctx.dpy, "UTF8_STRING", false);
wa.override_redirect = true;
wa.background_pixmap = ParentRelative;

View File

@ -34,14 +34,12 @@ struct dimensions {
};
typedef struct _xctx {
Atom utf8;
Display *dpy;
int cur_screen;
Window win;
bool visible;
const char *colors[3][3];
XScreenSaverInfo *screensaver_info;
unsigned long sep_custom_col;
} xctx_t;
typedef struct _color_t {