On Thu Jun 22 13:03:17 2023 +0000, Gabriel Ivăncescu wrote:
I see, I am using Compiz (yeah, I know it might have a bug with it, not entirely sure). SetCapture is needed when you spawn another window, such as the Project Settings or the Render window (from the File menu), then try to drag that window for example. It won't allow me to drag it here without the SetCapture change. Of course all of this has to be done while the main window is fullscreen and clipping.
Fwiw I think disabling / enabling cursor clipping when creating a window is not great. I don't think it should be necessary and it seems brittle at best.
Then I'd approve the check for a capture window when trying to enable fullscreen clipping alone.
And if we want to help working around bogus WMs, like it seems to be here, maybe it would be better to change the fullscreen clipping option to either:
* Disable fullscreen clipping entirely if the option is not selected.
* Make it a three state option (on/off/auto), and keep the current behavior as the "auto" setting.