HumbleUI / JWM

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

X11 (Cinnamon?): _NET_WM_SYNC_REQUEST stops working after releasing resize while still dragging mouse #219

Closed dzaima closed 2 years ago

dzaima commented 2 years ago

Very cryptic problem, but it's annoying me to no end.

  1. hold a corner of the window
  2. drag around
  3. while still dragging the mouse around, release left click (will not happen if you hold mouse, stop moving, and release while keeping the mouse pointer still)
  4. observe that on future resizing its glitchy

Might be a Cinnamon/Linux Mint issue (would love to hear if this is reproducable on other systems), might be an issue with JWM's _NET_WM_SYNC_REQUEST usage/implementation.

edit: behavior in random other apps: GIMP & Krita have the same issue; Sublime Text, Nemo, and Gnome Terminal don't.

tonsky commented 2 years ago

Can you record a video? I couldn’t reproduce

dzaima commented 2 years ago

https://user-images.githubusercontent.com/5551338/157094990-3b372211-0096-4c23-8dfa-479bd078f71e.mp4

But given that both Krita and GIMP, which use completely different code to interact with X11, both suffer from the same problem (and I'd assume their X11 code should be pretty solid), I don't think there's any nice fix for this; my guess would be something along the lines of using some other unrelated API that just happens to make this not happen. Not sure how worth is it to try to hunt this down for JWM.

dzaima commented 2 years ago

(Gonna close this as this is definitely not JWMs fault)

dzaima commented 2 years ago

(fwiw, this is fixed on Linux Mint 21)

tonsky commented 2 years ago

Linux Mint sounds like a fun experience :)