A better ManualPlacement that allows drawing the geometry of the new window.
Closed this issue · 0 comments
Currently, the Style ManualPlacement
makes it so that the new window outline will pop under the cursor, allowing the user to drag it around to choose a spot for the new window. You also get to see what the initial size for the new window is going to be.
However, the fact that the cursor is always placed at the top left corner of the window frame makes it awkward to use. If you launch a new window while your cursor is on the right side of the screen, you often have to drag it all the way to the left just to make the new window visible as a whole. This is even worse if the initial size of the new window is very big.
I believe we can do better than this, allowing the user to determine the exact size and position of the new window with the following steps.
- Before a window would be launched, allow the user to drag and release the mouse to draw a rectangle on the screen, similar to using xrectsel
- The new window will be launched and placed at that exact position with those exact geometries.
What about scripting?
At the moment I am using a bash script that allows me to select a window with slw
from wmutils, get its ID with pfw
, invoke xrectsel to draw a rectangle, and then finally use wtp
, also from wmutils to teleport the selected window using its ID to the new defined position with a new size. This is meant for reshaping an already existing window, but it could be possible to implement something like this for creating new windows. Nevertheless, I would love to see a feature like this implemented in Fvwm. I can't see any downside to this compared to the current ManualPlacement
.