From 1aecf1bfcb5b135607732b20be58887b7fc9a5e8 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 19 Jan 2025 15:39:59 -0700 Subject: move dwm files to separate directory --- .config/guix/modules/dwm/transient.c | 42 ------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 .config/guix/modules/dwm/transient.c (limited to '.config/guix/modules/dwm/transient.c') diff --git a/.config/guix/modules/dwm/transient.c b/.config/guix/modules/dwm/transient.c deleted file mode 100644 index 040adb5..0000000 --- a/.config/guix/modules/dwm/transient.c +++ /dev/null @@ -1,42 +0,0 @@ -/* cc transient.c -o transient -lX11 */ - -#include -#include -#include -#include - -int main(void) { - Display *d; - Window r, f, t = None; - XSizeHints h; - XEvent e; - - d = XOpenDisplay(NULL); - if (!d) - exit(1); - r = DefaultRootWindow(d); - - f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0); - h.min_width = h.max_width = h.min_height = h.max_height = 400; - h.flags = PMinSize | PMaxSize; - XSetWMNormalHints(d, f, &h); - XStoreName(d, f, "floating"); - XMapWindow(d, f); - - XSelectInput(d, f, ExposureMask); - while (1) { - XNextEvent(d, &e); - - if (t == None) { - sleep(5); - t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0); - XSetTransientForHint(d, t, f); - XStoreName(d, t, "transient"); - XMapWindow(d, t); - XSelectInput(d, t, ExposureMask); - } - } - - XCloseDisplay(d); - exit(0); -} -- cgit v1.2.3