Technically, why does my app work flawlessly with a virtual desktop but not without it?

Questions about Wine on Linux
Locked
oldcastle
Level 2
Level 2
Posts: 14
Joined: Tue Mar 15, 2022 8:30 am

Technically, why does my app work flawlessly with a virtual desktop but not without it?

Post by oldcastle »

Hi,

I'm using https://www.mutools.com/ as my DAW and it works 100% when I use it with the virtual desktop. But if I try to run it without the virtual desktop, I notice the app loses focus when I try to access subwindows or dialog windows, which is explained here https://bugs.winehq.org/show_bug.cgi?id=52974. So, I believe the issue is within the window manager. Is that right?

Ps: I'm using Arch Linux with Plasma, Xorg and the latest wine-staging.
invisible kid
Level 5
Level 5
Posts: 354
Joined: Tue Dec 24, 2019 3:23 pm

Re: Technically, why does my app work flawlessly with a virtual desktop but not without it?

Post by invisible kid »

Hi, just a regular user here. I know there are some options in winecfg relating to this. Perhaps a lock cursor or similar type of option.
For Hearthstone I have to add a field to the Windows registry and then it works correctly.
Here are my notes for Hearthstone. It may give hints or ideas that you can try:

https://wiki.winehq.org/Wine_User%27s_Guide

Code: Select all

wine regedit
HKEY_CURRENT_USER > Software > Wine > X11 Driver
then right click X11 Driver and add a new string "UseTakeFocus", then modify the
value to "N".
oldcastle
Level 2
Level 2
Posts: 14
Joined: Tue Mar 15, 2022 8:30 am

Re: Technically, why does my app work flawlessly with a virtual desktop but not without it?

Post by oldcastle »

Hey, thanks for your reply.

I noticed that I don't have the " X11 Driver" entry. Which version is your Wine?
invisible kid
Level 5
Level 5
Posts: 354
Joined: Tue Dec 24, 2019 3:23 pm

Re: Technically, why does my app work flawlessly with a virtual desktop but not without it?

Post by invisible kid »

This was a fix specific to Hearthstone. The game would crash any time the program lost focus, like if you hit alt+tab. I don't know if it would help in your situation, but since you haven't received any replies, I thought it might offer a starting point. I would google and play with the options under Graphics tab in winecfg like mouse capture and allowing WM to control the windows. I generally don't use virtual desktops, but I think I had to once or twice.

So, back to your original question, I don't think any fresh install of wine will have that setting in the registry. I am currently using wine-6.19 (Staging). I do know Hearthstone will pick up on it, but don't know if your app will.
Locked