fvwmorg/fvwm3

new window to popup close to my mouse pointer?

harridu opened this issue · 3 comments

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.

Style * PositionPlacement undermouse

@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.

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