HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
571 stars 46 forks source link

Resizing mouse cursors #231

Closed dzaima closed 2 years ago

dzaima commented 2 years ago

warning: completely untested on macOS or windows as I don't have access to those, but I tried to find some names for the icons for those OSes anyway.

Adds resizing cursors (plus more X11 definitions for the existing ones). Names taken from CSS.

tonsky commented 2 years ago

Thanks! Merged these four:

RESIZE_NS     = 8,
RESIZE_WE     = 9,
RESIZE_NESW   = 10,
RESIZE_NWSE   = 11,

The rest wasn’t working on any of my systems. Mac has singular N/S/W/E, but neither linux nor windows seem to have those. Also mac is missing NESW/NWSE right now. I guess the solution here would be to provide custom cursors (I think that’s what both browsers and AWT do), then we can cover all the use-cases

dzaima commented 2 years ago

All the linux cursors except nwse-resize and nesw-resize work for me (Linux Mint 20.3 cinnamon). But if those XC_ things aren't working everywhere maybe it makes sense to not include them

tonsky commented 2 years ago

I tried on Ubuntu 20.04