From c4de221356ebee849b7000bc1ba1f19be1c9ec1f Mon Sep 17 00:00:00 2001 From: L0Wigh Date: Tue, 2 Sep 2025 19:03:49 +0200 Subject: (fix): Mistake when doing "rebase" --- src/sxwm.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/sxwm.c b/src/sxwm.c index 881cce6..fb13f55 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -2176,29 +2176,6 @@ void set_win_scratchpad(int n) scratchpads[n].enabled = False; } -Bool window_should_float(Window w) -{ - XClassHint ch; - if (XGetClassHint(dpy, w, &ch)) { - for (int i = 0; i < 256; i++) { - if (!user_config.should_float[i] || !user_config.should_float[i][0]) { - break; - } - - if ((ch.res_class && !strcmp(ch.res_class, user_config.should_float[i][0])) || - (ch.res_name && !strcmp(ch.res_name, user_config.should_float[i][0]))) { - XFree(ch.res_class); - XFree(ch.res_name); - return True; - } - } - XFree(ch.res_class); - XFree(ch.res_name); - } - - return False; -} - void reset_opacity(Window w) { Atom atom = XInternAtom(dpy, "_NET_WM_WINDOW_OPACITY", False); -- cgit v1.2.3