twm random window placement handles large windows poorly
Submitted by Preston Crow
Assigned to Xorg Project Team
Description
Created attachment 89114 Patch for improved window placement
When twm is told to use random placement for new windows, and a window will appear off the edge of the screen with the current position, it is moved back to 50 pixels from the top or left of the screen. This works fine, except for windows that will still go off the edge of the screen with that 50 pixels.
With the attached patch, the placement is between 0 and 50 pixels as needed to avoid pushing the window off the screen. This patch works particularly well with applications that open windows that are the same dimensions as the screen for full-screen mode without specifying the position.
Attachment 89114, "Patch for improved window placement":
twm_large_window.patch