Grab on the root/composite window, not the outer window.
This allows deferring the XMapWindow call to after grabs succeeded, so in case grabbing fails the screen no longer turns temporarily black. This reduces the danger that someone may think grabbing succeeded then closes their laptop. Also, rename grab_window to background_window now that there's no longer a grab on it.
parent
b86d3963
Please register or sign in to comment