summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-26 12:58:37 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-26 12:58:37 +0000
commita97b85927a0405108abb72479240d76a8c3f5097 (patch)
treead0cd8f921d0a6db8571903cccee732e6f3c83e1
parent1655cac638d1337a75c9b715962a0a909a4fc430 (diff)
downloaddrakx-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)
-rw-r--r--move/xwait.c5
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);
}