diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 12:58:37 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 12:58:37 +0000 |
commit | a97b85927a0405108abb72479240d76a8c3f5097 (patch) | |
tree | ad0cd8f921d0a6db8571903cccee732e6f3c83e1 /move/xwait.c | |
parent | 1655cac638d1337a75c9b715962a0a909a4fc430 (diff) | |
download | drakx-a97b85927a0405108abb72479240d76a8c3f5097.tar drakx-a97b85927a0405108abb72479240d76a8c3f5097.tar.gz drakx-a97b85927a0405108abb72479240d76a8c3f5097.tar.bz2 drakx-a97b85927a0405108abb72479240d76a8c3f5097.tar.xz drakx-a97b85927a0405108abb72479240d76a8c3f5097.zip |
allow to ask it to stay permanent (used for not blinking when startkde exits)
Diffstat (limited to 'move/xwait.c')
-rw-r--r-- | move/xwait.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/move/xwait.c b/move/xwait.c index a199b790e..07a693514 100644 --- a/move/xwait.c +++ b/move/xwait.c @@ -1,7 +1,8 @@ #include <stdlib.h> #include <X11/Xlib.h> -int main() { +int main(int argc, char **argv) { + int permanent = argc > 1 && !strcmp(argv[1], "-permanent"); Display *display = XOpenDisplay(NULL); if (display) { @@ -10,7 +11,7 @@ int main() { XSelectInput(display, DefaultRootWindow(display), SubstructureNotifyMask); do { XNextEvent(display, &event); - } while (event.type != CreateNotify); + } while (event.type != CreateNotify || permanent); XCloseDisplay(display); } |