present: recursively set window pixmaps on flip
authorKeith Packard <keithp@keithp.com>
Tue, 10 Dec 2013 19:27:47 +0000 (11:27 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Dec 2013 22:16:42 +0000 (14:16 -0800)
commitfe07ec19e212a68076560d243a2a935c54589068
tree1360af1f3850c2332dceafc2e6fbb0719bc5ab97
parentb3533d0b212b6747a8f9a01931253d6bdb648ee2
present: recursively set window pixmaps on flip

Newly created windows inherit the pixmap of their parent, similarly,
reparenting a tree inherits the pixmap of the destination tree.

Making present preserve the invariant that unredirected windows always
have the same pixmap as their parent ensures that the above cases work
correctly.

v2: name the recursive function to 'set_tree_pixmap' instead of 'set_window_pixmap'

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
present/present.c