fvwmorg / fvwm3

FVWM version 3 -- the successor to fvwm2
Other
502 stars 79 forks source link

new window to popup close to my mouse pointer? #948

Open harridu opened 6 months ago

harridu commented 6 months ago

Describe the new feature

Using a pretty large monitor (49") it is unpredictable where the next window will pop up. Would it be possible that new windows are placed as close to the current mouse pointer as possible, without overlapping other windows (if possible)?

How might fvwm3 need to change?

This would be some new placement style. Please excuse if I was too blind to see.

Can this be achieved through scripting?

I have no idea.

ThomasAdam commented 6 months ago

Style * PositionPlacement undermouse

harridu commented 6 months ago

@ThomasAdam , this is not what I meant. UnderMouse just opens the window under the mouse, ignoring empty space. The suggestion was to open it as close as possible to the mouse pointer, see above. Overlapping other windows should be avoided.

PS: Apparently sequence is important. I had

Style   *   !UsePPosition
Style   *   UseTransientPPosition
Style   *   MinOverlapPlacement
Style   *   MinOverlapPlacementPenalties 1 5 1 1 0 50
Style   *   PositionPlacement UnderMouse

Changing this to

Style   *   !UsePPosition
Style   *   UseTransientPPosition
Style   *   PositionPlacement UnderMouse
Style   *   MinOverlapPlacement
Style   *   MinOverlapPlacementPenalties 1 5 1 1 0 50

breaks the UnderMouse.

harridu commented 1 month ago

@ThomasAdam , is it OK to reopen this issue? I would be interested in your feedback wrt my comment above.