edge detection, windows stay on screen