From dc9807f9e1a35f9818bea283a97f30ebe93f7f99 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 18 Jul 2010 14:30:47 +0200 Subject: [PATCH] Add a comment to XCB_NONE for sibling I guess it is done like this accidentally, but it actually has to be done this way to avoid flickering. Signed-off-by: Uli Schlachter --- stack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack.c b/stack.c index 3fe64b03..dbc0ff9e 100644 --- a/stack.c +++ b/stack.c @@ -148,6 +148,9 @@ stack_refresh() if(!need_stack_refresh) return; + /* XCB_NONE is an invalid value for XCB_CONFIG_WINDOW_SIBLING and will cause + * an error instead of changing the stacking order. This is a *good* thing. + * Else we would be forcing windows to redraw themselves. */ xcb_window_t next = XCB_NONE; /* stack desktop windows */