phillbush / xmenu

a x11 menu utility
Other
296 stars 26 forks source link

Handle boundary crossing for fixed positioning #44

Closed z0noxz closed 1 year ago

z0noxz commented 1 year ago

This is so that you can position your menu in, say, the upper right corner of your screen without the menu being rendered outside of the screen. For example on a monitor that is 2560 by 1080 pixel, using the -p 2560x0 will now render the menu inside the screen. The same goes for the y-axis when using -p 2560x1080.

I think this could be a useful feature as I see no reason to handle the pflag differently when it comes to boundary crossing checks. I hope I have not missed some other intention for this difference.