fvwmorg/fvwm3

Feature Request: Mouse Drag Events

Closed this issue · 1 comments

Describe the new feature

I don't know who was the first to do it, but Microsoft implemented a feature they called "Aero Snap" for Windows 7 (now just called "Snap"). Basically if you drag a window to an edge it resizes it 50%.

https://www.youtube.com/watch?v=XVV-KG3q7gM

Though there's no reason to limit this to just resizing windows, but that is primarily why I want it.

How might fvwm3 need to change?

  • Non-technical thoughts about the impact this will have in fvwm3, what
    might need to change, and whether this impacts backwards-compatability.

This would not impact backwards compatibility as I think it requires entirely new features.

Can this be achieved through scripting?

I would imagine you can do something like:

Mouse 1 1 A + cursor_has_moved + cursor__touching_pixels 0x1080+100+0 function_to_do.

  • Is a proof-of-concept available externally through scripting fvwm3?

I don't think it's possible, but I'm not strong in the ways of fvwm.

  • Does this functionality exist elsewhere in other WMs, if so, which?

Windows 7+ (much more complicated in Win11), Metacity, Kwin, JWM I think.

You can use EdgeCommand to emulate something similar.