diff options
author | Mystery Man <unknown@mandriva.org> | 2002-07-10 19:31:25 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-07-10 19:31:25 +0000 |
commit | 6503d93aba3af350f9c4c82ba26eb6fa72a09eee (patch) | |
tree | 8db95eaef917b200655ba0d0771c2109a58d9f74 /tools/aewm-drakx/aewm-drakx.c | |
parent | 086c820d43cdc543121f9206cf5368f95659e170 (diff) | |
download | drakx-1_1_8_5mdk.tar drakx-1_1_8_5mdk.tar.gz drakx-1_1_8_5mdk.tar.bz2 drakx-1_1_8_5mdk.tar.xz drakx-1_1_8_5mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_8_5mdk'.V1_1_8_5mdk
Diffstat (limited to 'tools/aewm-drakx/aewm-drakx.c')
-rw-r--r-- | tools/aewm-drakx/aewm-drakx.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tools/aewm-drakx/aewm-drakx.c b/tools/aewm-drakx/aewm-drakx.c deleted file mode 100644 index 4df2544af..000000000 --- a/tools/aewm-drakx/aewm-drakx.c +++ /dev/null @@ -1,50 +0,0 @@ -/* aewm - a minimalistic X11 window manager. ------- vim:sw=4:et - * Copyright (c) 1998-2001 Decklin Foster <decklin@red-bean.com> - * Free software! Please see README for details and license. */ - -#include "aewm.h" - - -Display *dpy; -Window root; - -static void scan_wins(void) -{ - unsigned int nwins, i; - Window dummyw1, dummyw2, *wins; - XWindowAttributes attr; - - XQueryTree(dpy, root, &dummyw1, &dummyw2, &wins, &nwins); - for (i = 0; i < nwins; i++) { - XGetWindowAttributes(dpy, wins[i], &attr); - if (!attr.override_redirect && attr.map_state == IsViewable) - make_new_client(wins[i]); - } - XFree(wins); -} - -static void setup_display(void) -{ - XSetWindowAttributes sattr; - - dpy = XOpenDisplay(NULL); - - if (!dpy) { - err("can't open display! check your DISPLAY variable."); - exit(1); - } - - XSetErrorHandler(handle_xerror); - root = RootWindow(dpy, DefaultScreen(dpy)); - - sattr.event_mask = SubstructureRedirectMask|SubstructureNotifyMask; - XChangeWindowAttributes(dpy, root, CWEventMask, &sattr); -} - - -int main() -{ - setup_display(); - scan_wins(); - do_event_loop(); -} |