diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-09-08 12:36:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-09-08 12:36:10 +0000 |
commit | abbe4a3de13983cbcab7c62f08457fccd6aa9bee (patch) | |
tree | 904217b046d2a81dc02a77c7af6f9debad3bcb32 /tools/aewm-drakx/aewm-drakx.c | |
parent | 56aa33e8cf2d62b12f4c56537d13905e6cafca72 (diff) | |
download | drakx-backup-do-not-use-abbe4a3de13983cbcab7c62f08457fccd6aa9bee.tar drakx-backup-do-not-use-abbe4a3de13983cbcab7c62f08457fccd6aa9bee.tar.gz drakx-backup-do-not-use-abbe4a3de13983cbcab7c62f08457fccd6aa9bee.tar.bz2 drakx-backup-do-not-use-abbe4a3de13983cbcab7c62f08457fccd6aa9bee.tar.xz drakx-backup-do-not-use-abbe4a3de13983cbcab7c62f08457fccd6aa9bee.zip |
fixing keyboard focus during install:
- removed aewm-drakx which doesn't work nicely
- fix @interactive::objects handling
(don't push non pop_it windows, ensure destroyed windows are removed)
- ensure XSetInputFocus is called on $::WizardWindow
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(); -} |