Set the window background when drawing borders to reduce flickering.
Remove some shape extension cruft.
Map confirm dialogs in the above layer.
Only show one confirm dialog at a time.