From a97b85927a0405108abb72479240d76a8c3f5097 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 26 Nov 2003 12:58:37 +0000 Subject: allow to ask it to stay permanent (used for not blinking when startkde exits) --- move/xwait.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'move') 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 #include -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); } -- cgit v1.2.1