aboutsummaryrefslogtreecommitdiffstats
path: root/transient.c
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2015-04-05 13:05:20 +0200
committerEduardo Pedroni <ep625@york.ac.uk>2015-04-05 13:05:20 +0200
commite18c4836aec2ce491b63b464ea10782c581f5110 (patch)
treebdf5c628271b6121a4a1272e08afcd637572326a /transient.c
parent4de1b0d13237c92e5fcc02e2fc5e7ecab3d5a6b1 (diff)
Merging fonts does not work, trying multi font support
Diffstat (limited to 'transient.c')
-rw-r--r--transient.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/transient.c b/transient.c
deleted file mode 100644
index 040adb5..0000000
--- a/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);
-}