diff options
| author | stkhan <personal@slickd.xyz> | 2021-06-19 10:42:51 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2021-06-19 10:42:51 -0500 |
| commit | 120b0999b4d996f4e9a0d78975f7ef4923b95e7e (patch) | |
| tree | 8cf3fa8dc6069b1f4cfe6a874be428cb38cb744b /sd/dwm-6.2/transient.c | |
| parent | e2dbb81b9144fd8be2eb89617db38fd361079fed (diff) | |
Remove tmp dir
Former-commit-id: f9a9e87a5573b8c6549d802405fa53c78ec419b9
Diffstat (limited to 'sd/dwm-6.2/transient.c')
| -rw-r--r-- | sd/dwm-6.2/transient.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sd/dwm-6.2/transient.c b/sd/dwm-6.2/transient.c deleted file mode 100644 index 040adb5..0000000 --- a/sd/dwm-6.2/transient.c +++ /dev/null @@ -1,42 +0,0 @@ -/* cc transient.c -o transient -lX11 */ - -#include <stdlib.h> -#include <unistd.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> - -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); -} |