diff --git a/popup.c b/popup.c index c4c142e..32b1246 100644 --- a/popup.c +++ b/popup.c @@ -186,6 +186,11 @@ int main() XftDraw *draw = XftDrawCreate(dpy, window, visual, colormap); XftColorAllocName(dpy, visual, colormap, font_color, &color); + + XClassHint classhint = { "popup", "Popup" }; + XSetClassHint(dpy, window, &classhint); + + XSelectInput(dpy, window, ExposureMask | ButtonPress); XMapWindow(dpy, window);