On Fri Feb 7 08:24:39 2025 +0000, littlewu2508 wrote:
Hello, as an user I'd like to report an issue with desktop mode. After applying this MR on top of wine-10.0, I can successfully copy-paste in notepad.exe with winewayland. However when I tried desktop mode, copy-paste does not work. In X11 the clipboard works fine. Both `DISPLAY= WINEARCH=win64 wine notepad` and `WINEARCH=win64 wine explorer /desktop=test,3840x2160 notepad` works, but `DISPLAY= WINEARCH=win64 wine explorer /desktop=test,3840x2160 notepad` does not synchronize clipboard
In general desktop mode is not currently supported by the wayland driver (e.g., no desktop window is actually drawn), so I didn't consider the multi-desktop scenario in this MR.
In particular, the approach used in this MR doesn't work for desktop mode because the clipboard manager window is created in the default desktop, and it can't find (or be found by) and communicate with windows created in other desktops (e.g., the actual foreground window). Some other approach is required if we want to support the multi-desktop use case. I am open to suggestions...