https://bugs.winehq.org/show_bug.cgi?id=38105
Bug ID: 38105 Summary: Missing min/max/expand buttons, app controls & moving ability of Photoshop CS6/CC main window when unmaximized Product: Wine Version: 1.7.36 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: fincer89@hotmail.com Distribution: ---
Created attachment 50773 --> https://bugs.winehq.org/attachment.cgi?id=50773 appbar + win backtrace log (Photoshop CC)
Short terminal output when unmaximizing & maximizing the main window repeatedly (Photoshop CS6 & CC):
fixme:win:LockWindowUpdate (0x710a0), partial stub! fixme:win:LockWindowUpdate ((nil)), partial stub! fixme:appbar:SHAppBarMessage unknown msg: 4 fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETSTATE): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETTASKBARPOS, hwnd=(nil)): stub fixme:win:LockWindowUpdate (0x710a0), partial stub! fixme:win:LockWindowUpdate ((nil)), partial stub! fixme:appbar:SHAppBarMessage unknown msg: 4 fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETSTATE): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETTASKBARPOS, hwnd=(nil)): stub fixme:appbar:SHAppBarMessage unknown msg: 4 fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETSTATE): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETTASKBARPOS, hwnd=(nil)): stub
Backtrace log (appbar + win) provided as an attachment.
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #1 from Pekka Helenius fincer89@hotmail.com --- Created attachment 50774 --> https://bugs.winehq.org/attachment.cgi?id=50774 Photoshop CC - unmaximized main window
As the bug is practically seen on Linux desktop (image/png attachment).
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #2 from Pekka Helenius fincer89@hotmail.com --- Just tested the trial version of Illustrator CC. It has the same problem, exactly same fixme messages. However, the behavior differs a little bit: you can't maximize the main program window (it stays unmaximized, no matter what you try) but you can move it on desktop and it has no graphical glitches/missing stuff like Photoshop CS6/CC do.
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #3 from Ken Sharp imwellcushtymelike@gmail.com --- Have you used any workarounds?
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #4 from Fincer fincer89@hotmail.com --- Created attachment 55935 --> https://bugs.winehq.org/attachment.cgi?id=55935 Photoshop CC 2015 main window - double clicked to maximize it, Wine 1.9.21 32-bit (no winetricks stuff)
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #5 from Fincer fincer89@hotmail.com --- @Ken Sharp:
Umm, not sure what you mean by workarounds. However, as far as I am aware, I've not used any workarounds (such as winetricks) that could cause the issue. I have tested the program with pure Wine 1.9.21 32-bit without any patches applied (the newest Wine version at the moment) and the issue is still present.
https://bugs.winehq.org/show_bug.cgi?id=38105
tienthanh3199@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tienthanh3199@gmail.com
--- Comment #6 from tienthanh3199@gmail.com --- I have the same problem on kde plasma 5, but didn't happen on xfce4 or some wm. So it's most likely not a wine bugs.
https://bugs.winehq.org/show_bug.cgi?id=38105
mrypsilons@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrypsilons@gmail.com
--- Comment #7 from mrypsilons@gmail.com --- Can confirm that it happens with kwin_x11. Haven't tried with another window manager.
Some observations: - Working fine in virtual desktop mode - If you minimize and close in virtual desktop mode and then start it again without virtual desktop mode, the minimized window is rendered correctly - You can maximize/un-maximize correctly now if you are using Plasma's checkboxes in the taskbar - As soon as you click on Photoshop's own maximize button (or photoshop starts maximized), the "Maximize" checkbox in the taskbar is locked, you can't uncheck it - If you click Photoshop's maximize-button now, the reported problem occurs, Plasma's Maximize checkbox is still checked
So it seems that whenever Photoshop maximizes the window, kwin locks the window to maximized. When unmaximizing with Photoshops button, it resizes the window correctly (you can actually see the minimized appbar for the fraction of a second), but then kwin seems to enforce the maximized state, so the window content is rendered in fullscreen again, but it gets clipped to where the window borders were.
If you accidentally unmaximize, you can get the appbar back by resizing the window (with invisible borders) with Plasma's shortcut (default: Alt+drag with right mouse button clicked)
https://bugs.winehq.org/show_bug.cgi?id=38105
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #8 from winetest@luukku.com --- (In reply to mrypsilons from comment #7)
Can confirm that it happens with kwin_x11. Haven't tried with another window manager.
Did I miss it but you didnt mention wine version? It's quite important information when responding to bugs.
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #9 from mrypsilons@gmail.com --- (In reply to winetest from comment #8)
Did I miss it but you didnt mention wine version? It's quite important information when responding to bugs.
Oops, forgot to mention... Problem is present in 2.2 and 2.2-staging.
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #10 from Fincer fincer89@hotmail.com --- mrypsilons, thanks for detailed analysis of this issue!
I recently upgraded from Plasma 4 to Plasma 5 and the same bug still exists.
Is there any specific Wine component we could debug to get more data to track down the issue?
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #11 from Fincer fincer89@hotmail.com --- Still present in Wine 2.3, Plasma 5 (kwin 5.9.3)
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #12 from Fincer fincer89@hotmail.com --- If I untag "Allow the window manager to control the windows" option in Winecfg/Graphics, the Photoshop application controls are visible and usable while the program is unmaximized (meaning that the bug is not present as shown in the earlier screenshots). However, as a result, Photoshop main window remains on the top of all opened windows on Plasma desktop which makes this "solution" non-viable.
https://bugs.winehq.org/show_bug.cgi?id=38105
Fincer fincer89@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fincer89@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=38105
--- Comment #13 from Fincer fincer89@hotmail.com --- Still present on Wine 2.17.
https://bugs.winehq.org/show_bug.cgi?id=38105
winepala@tradermail.info changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winepala@tradermail.info
--- Comment #14 from winepala@tradermail.info --- Photoshop CC 2019 64-bit also presents this issue on Wine 4.8
https://bugs.winehq.org/show_bug.cgi?id=38105
devonstopps@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |devonstopps@gmail.com
--- Comment #15 from devonstopps@gmail.com --- Try upgrading to latest. This fixed same issue for me that occurred in KDE plasma only with Office 2010.
Believe this is fixed by this commit:
https://source.winehq.org/git/wine.git/commit/c5ec1585f6e5211a2b63e343574821...
winex11.drv: Always update _NET_WM_STATE in update_net_wm_states(). author Zhiyi Zhang zzhang@codeweavers.com Tue, 25 Aug 2020 07:20:39 +0000 (15:20 +0800) committer Alexandre Julliard julliard@winehq.org Wed, 26 Aug 2020 09:09:05 +0000 (11:09 +0200) commit c5ec1585f6e5211a2b63e3435748210552250534 tree 312181809c642938d75868fd6daa2870ad5f1dfc tree parent f04360cfbec574dc37675df141ef8fc14e1302ba commit | diff
winex11.drv: Always update _NET_WM_STATE in update_net_wm_states().
KWin treats a window covering exactly the whole monitor as maximized when handling its first map request and expects applications to update maximized state later. Wine doesn't know about this added maximized state and expect it unchanged, making the window always maximized as far as KWin is concerned. So always send _NET_WM_STATE updates even if Wine doesn't expect changes to hint KWin that a window should not be maximized.
https://bugs.winehq.org/show_bug.cgi?id=38105
Pekka Helenius fincer89@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Missing min/max/expand |Missing window control |buttons, app controls & |mechanisms (min/max/expand) |moving ability of Photoshop |and dragging ability while |CS6/CC main window when |application is in |unmaximized |unmaximized state