wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

place: Add "nearmouse" mode for placing under cursor

Open yobert opened this issue 4 years ago • 5 comments

Add a new mode for placing new windows, where it will attempt to be placed centered under the mouse cursor. If it would run off the edge of the screen it is clamped. I think this mode is a lot friendlier than the default of placing in the center. Let me know what you think!

I saw your note about the stabilize-api branch--- but I couldn't get that one to compile. It's okay if this takes a while to merge though! No hurry.

I really love this project you've made. Thank you for your hard work and I hope I can help with it.

yobert avatar Jan 31 '22 06:01 yobert

One note-- I don't fully understand all the coordinate systems used in Wayfire. It's possible I'm doing it wrong when there are multiple outputs.

yobert avatar Jan 31 '22 06:01 yobert

Sounds like it could be a nice experience! :)

One think MS Windows does to prevent windows stacking directly on top of each other, is spawning the next window just a few pixel shifted, diagonally to the bottom right. Something similar might be considered for the "standard" behavior, since stacking windows exactly on top of each other is not very user friendly.

fyrak1s avatar Jan 31 '22 07:01 fyrak1s

@Nuc1eoN Good idea! Sort of like cascade mode + this mode? Maybe we should just go all out and make a fancy "auto" mode that tries to find some empty space in the work area that would fit the new window. Or it could try that first and resort to other methods if the desktop is too full.

yobert avatar Jan 31 '22 18:01 yobert

image

This is how Windows does it, interesting, huh?

EDIT:

Sort of like cascade mode + this mode? Maybe we should just go all out and make a fancy "auto" mode that tries to find some empty space in the work area that would fit the new window. Or it could try that first and resort to other methods if the desktop is too full.

I don't know, trial and error and testing against real life experience is best best approach here imo...

I have always got an eye on Windows, since they have obviously millions to invest in UIX. Same for Apple. Not everything has to be reinvented. Just rip it off the giants before they patent it :P

fyrak1s avatar Jan 31 '22 18:01 fyrak1s

Yeah! makes sense. This feature idea as it is comes from Fluxbox, my favorite window manager from Ye Olde Xorg. I like to move my mouse to one of my corners when I launch a terminal and have the new window come up in that corner, snug against the edge.

yobert avatar Feb 02 '22 00:02 yobert

Closing for now just to remove cruft. I'll try again in the future with some fancy features.

yobert avatar Jan 04 '23 22:01 yobert