[Bug 56148] New: Adobe Photoshop CC 2017: Camera Raw losing focus after tooltip appearing, all buttons gray out
https://bugs.winehq.org/show_bug.cgi?id=56148 Bug ID: 56148 Summary: Adobe Photoshop CC 2017: Camera Raw losing focus after tooltip appearing, all buttons gray out Product: Wine Version: 8.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: bigfoothart(a)gmail.com Distribution: --- Created attachment 75827 --> https://bugs.winehq.org/attachment.cgi?id=75827 Lost focus after tooltip appears Adobe Photoshop CC 2017, Other versions like 18,19 are also affected. Also tried latest wine up to the 9.0rc3. Camera Raw in Photoshop lose focus after after tooltip appearing, all buttons gray out. After switching to other apps and come back to Camera Raw the focus returns until tooltip appearing. If 'emulate virtual desktop' is enabled the 'Camera Raw' doesn't lose focus and behave good. Also Camera Raw doesn't lose focus with Wayland driver (DISPLAY="" wine ...) Watch the video for illustration. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56148 darkblaze69 <bigfoothart(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bigfoothart(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=56148 Pekka Helenius <fincer89@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fincer89@hotmail.com --- Comment #1 from Pekka Helenius <fincer89@hotmail.com> --- I confirm this bug. This has been an issue for *years*, as far as I can remember. I have occasionally tested newer Wine versions, still the issue remains. Camera Raw UI/window loses focus (all controls become greyed out) while hovering the window with mouse cursor but it regains the focus like darkblaze69 described - until losing it again. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=56148 --- Comment #2 from Pekka Helenius <fincer89@hotmail.com> --- Created attachment 80410 --> http://bugs.winehq.org/attachment.cgi?id=80410 winex11.drv: Avoid foreground promotion for transient popups on WM_TAKE_FOCUS Fixed, at least for Adobe Photoshop. Tested with Camera Raw 9.10 + Wine 9.9 (yes, newer versions should be used) + KWin/XWayland. Below is an explanation of why the Camera Raw dialog window loses focus under Wine’s X11 driver. The attached patch file fixes the issue for Camera Raw. I have not tested the impact of the patch on other applications. What happens: When a popup appears, KWin/XWayland sends WM_TAKE_FOCUS for a transient popup window. Wine’s X11 driver treats this as permission to promote that popup to the Win32 foreground window (via set_focus() → NtUserSetForegroundWindow()), deactivating the main dialog. Camera Raw reacts to deactivation by disabling controls. Example trace pattern: ... trace:event:handle_wm_protocols got take focus msg for 0x????? ... (style 94800001), focus=0x2137a, active=0x2137a, fg=0x2137a trace:event:set_focus setting foreground window to 0x????? ... The trace was captured under XWayland using: env DISPLAY=:0 WAYLAND_DISPLAY= \ WINEDEBUG=+event,+x11drv,+window,+focus,+msg \ WINEPREFIX=<path/to/prefix_dir> \ wine <path/to/Photoshop.exe> &> wine_tooltip_trace.log The important debug channels for reproducing the issue: +event (WM_TAKE_FOCUS handling) +x11drv (X11 focus/activation paths) +window, +focus (Win32 activation/foreground changes) Why a heuristic approach is needed: Filtering only tooltips_class32 is insufficient: in failing runs, the windows receiving WM_TAKE_FOCUS are not always standard tooltip windows. However, these windows share a common "transient popup" signature (WS_POPUP with WS_EX_TOOLWINDOW, not WS_EX_APPWINDOW, typically WS_EX_TOPMOST or without a caption), and should not become the Win32 foreground window. Proposed fix: In dlls/winex11.drv/event.c WM_TAKE_FOCUS handling, detect tooltips and other transient popup windows and avoid promoting them to the Win32 foreground. Instead, keep the foreground on the currently active window. This prevents unintended deactivation of the main dialog and resolves the UI greying-out. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
WineHQ Bugzilla -
WineHQ Bugzilla