From 7c1501271c3e0a14746377ae6096eed8fecc98c4 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 2 Jun 2023 11:16:48 -0400 Subject: [PATCH] Update popup.c --- popup.c | 5 +++++ 1 file changed, 5 insertions(+) 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);