restack_window/2
     restack_window(+Window, +Stackmode)
     

Move Window in stacking order as indicated by the value of Stackmode:


Value
Meaning
top
Move Window to the top of stack.
above(Win2)
Move Window just above Win2.
bottom
Move Window to the bottom of stack.
below(Win2)
Move Window just below Win2.
top_if
Move Window to the top of stack if any other window occludes it.
top_if(Win2)
Move Window to the top if Win2 occludes it.
bottom_if
Move Window to the bottom of stack if it occludes any other window.
bottom_if(Win2)
Move Window to the bottom if it occludes Win2.
opposite
Move Window to the top if any window occludes it, otherwise move it to the bottom if it occludes any window.
opposite(Win2)
Move Window to the top if Win2 occludes it, otherwise move Window to the bottom if it occludes Win2.