Wine 3.12 "Wine Desktop"

Questions about Wine on Linux
Locked
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Wine 3.12 "Wine Desktop"

Post by Cybermax »

How come wine-3.12 the wine-desktop is listed as "has no name" when i click it with xwininfo?

I have a multi-monitor setup, and since Linux kind of always start from 0:0 on the far left upper corner, it blows for me since my "main" monitor is at +1920+0 geometry.

In other words, i have to use a nifty proggy called "devilspie" to move the wine desktop to my other monitor. But with 3.12, the wine-desktop no longer has a name, and thus devilspie cannot do its magic.. atleast not out of the box.

Ideas or tips?

Ofc. ideally i could tell wine where to start, and it might aswell be that there is something new in 3.12 that fixes this, cos it has not been possible before :)

C
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine 3.12 "Wine Desktop"

Post by DarkShadow44 »

I can confirm that change, but I don't know if that change is intentional. It would make sense for that window to have a name I guess, I can take a look at the commit logs tomorrow to see why it changed.
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

DarkShadow44 wrote:I can confirm that change, but I don't know if that change is intentional. It would make sense for that window to have a name I guess, I can take a look at the commit logs tomorrow to see why it changed.
That would be sweet. I can probably make some workaround in the devilspie config for "no name" window, but if it is a bug, the preferred method would be for it to have a name :)
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine 3.12 "Wine Desktop"

Post by DarkShadow44 »

I doubt it was intentional, I sent in a patch to correct it: https://source.winehq.org/patches/data/148500
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

DarkShadow44 wrote:I doubt it was intentional, I sent in a patch to correct it: https://source.winehq.org/patches/data/148500
Thank you! :)

Although it was rejected, hopefully some other fix will make it happen :)
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine 3.12 "Wine Desktop"

Post by DarkShadow44 »

Well, the change might be outright reverted, see discussion is here: https://www.winehq.org/pipermail/wine-d ... 29495.html
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

DarkShadow44 wrote:Well, the change might be outright reverted, see discussion is here: https://www.winehq.org/pipermail/wine-d ... 29495.html
Since not much is happening in that thread and wine-3.13 did not fix this, I tossed in a bugreport https://bugs.winehq.org/show_bug.cgi?id=45485

We shall see. Will probably be marked duplicate with some random bug from 2004 or something and get lost in the big black hole, but well :)

C
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

I wonder if me posting my "lost in the black hole" theory made devs actually ignore my bug? :D

Yeah, enough of the conspiracy theories already!

Anyway.. As there is absolutely 0 interest in this bug, is there something else i could do?
Running

Code: Select all

wine explorer /desktop=Hello,1920x1080 notepad.exe
nets me a fullscreen wine desktop with no name... on my left monitor (xorg window placement 0,0 i guess)
running

Code: Select all

wine notepad.exe
automagically pops the notepad window up on the monitor i set as "primary" (ie. the center one).

Since the desktop name is being ignored since wine 3.12, and the "virtual desktop" always start at the 0.0 corner (top left corner on the left monitor) when using multiple monitors.. anything else i can do? Some hidden option i have missed that can place windows at given spots?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine 3.12 "Wine Desktop"

Post by DarkShadow44 »

Actually, just now there was another comment on the bug - there's a promising patch in queue right now!
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

DarkShadow44 wrote:Actually, just now there was another comment on the bug - there's a promising patch in queue right now!
Indeed! :) Just read it aswell. Sadly 1 of the 2 patches submitted failed, so some tweaking has to be done.. But there is hope :)
Patch 1/2: https://source.winehq.org/patches/data/149895
Patch 2/2: https://source.winehq.org/patches/data/149894
Report: https://testbot.winehq.org/JobDetails.pl?Key=40920 (Seems as there are some Chinese and Japanese windows problems? Wth.. heh)
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Wine 3.12 "Wine Desktop"

Post by Cybermax »

https://bugs.winehq.org/show_bug.cgi?id=45485
Fixed in commit https://source.winehq.org/git/wine.git/ ... ef583c17be

Incase anyone wanna try with a devilspie2 script:

Code: Select all

app_name = get_application_name();

if app_name == "Default - Wine desktop" then
	set_window_geometry(1920, 0, 1920, 1080);
end
For ME running two monitors with the "off-monitor" to my left instead of the linux default to the right, my starting point is 1920, 0. Tweak as you will :)
Locked