https://bugs.winehq.org/show_bug.cgi?id=38823
Bug ID: 38823 Summary: Sumatra PDF 3.0: tabs don't work correctly Product: Wine Version: 1.7.45 Hardware: x86 URL: https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/Sumatra PDF-3.0-install.exe OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: gohabsgo60@yahoo.ca Distribution: ---
to reproduce, install Sumatra PDF 3.0 in a clean prefix using the default options.
then, in wincfg, either turn off "Allow the windows manager to decorate the windows" or turn on "Emulate a virtual desktop", so that the tab area isn't cropped.
then click on the menu button, choose File > Open... and open a bunch of files (10 is a good number).
each file is opened in a tab. cycling through the tabs with the keyboard works perfectly (Ctrl-Tab and Ctrl-Shift-Tab). however, the tabs aren't handling mouse events properly.
if we number the tabs 0,1,2,3... then two things become apparent: -- odd numbered tabs don't seem to respond to mouse events at all. -- hovering/clicking tab 2*n will highlight/activate tab n, e.g., clicking tab 6 activates tab 3.
the program is open source and the code is avilable here: https://github.com/sumatrapdfreader/sumatrapdf
https://bugs.winehq.org/show_bug.cgi?id=38823
zippy gohabsgo60@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=38823
zippy gohabsgo60@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gohabsgo60@yahoo.ca
https://bugs.winehq.org/show_bug.cgi?id=38823
Basil Eric Rabi ericbasil.rabi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ericbasil.rabi@gmail.com
--- Comment #1 from Basil Eric Rabi ericbasil.rabi@gmail.com --- I'm using SumatraPDF 3.1.2 in wine 2.6. This bug is still present.
https://bugs.winehq.org/show_bug.cgi?id=38823
--- Comment #2 from Basil Eric Rabi ericbasil.rabi@gmail.com --- This issue is still present in wine 2.7.
https://bugs.winehq.org/show_bug.cgi?id=38823
--- Comment #3 from Basil Eric Rabi ericbasil.rabi@gmail.com --- Issue is still present in wine 2.14
https://bugs.winehq.org/show_bug.cgi?id=38823
--- Comment #4 from zippy gohabsgo60@yahoo.ca --- still present in wine 3.12
in this program, the tab area a standard windows tab control (verified with spy++).
unfortunately, when using native comctl32 installed with winetricks, the program fails to start:
wine: Call from 0x7b43f383 to unimplemented function comctl32.dll.HIMAGELIST_QueryInterface, aborting
https://bugs.winehq.org/show_bug.cgi?id=38823
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=38823
winehq@atypical.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@atypical.net
--- Comment #5 from winehq@atypical.net --- A workaround for this problem now exists:
winetricks gdiplus
followed by
winecfg
create a profile for the application, then select Grahics > (uncheck) Allow the window manager to control the windows
Tabs work 100%.
https://bugs.winehq.org/show_bug.cgi?id=38823
Jeff Smith whydoubt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |whydoubt@gmail.com
--- Comment #6 from Jeff Smith whydoubt@gmail.com --- When determining which tab is clicked, Sumatra does a transform on the cursor location, then does a IsVisible check to see if the cursor is within a bounding path. https://github.com/sumatrapdfreader/sumatrapdf/blob/3.4.6rel/src/Tabs.cpp#L1...
Wine's IsVisible is _also_ applying the transform, but it should not. From another perspective, this results in the effective origin of the bounding path being twice the value that it should be.
I have a fix in https://gitlab.winehq.org/wine/wine/-/merge_requests/3798
This does not address the cropped tab area (apparently not gdiplus-related since it happens with native as well), but that is already its own separate bug item.
https://bugs.winehq.org/show_bug.cgi?id=38823
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl, | |madewokherd@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38823
--- Comment #7 from Bartosz gang65@poczta.onet.pl --- I tested Sumatra PDF with Wine 8.16 and the issue was resolved with commit: 0c777a7d5cab90ab59d7a4a6b60c516efa7a9830
Bug should be closed as FIXED.
https://bugs.winehq.org/show_bug.cgi?id=38823
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0c777a7d5cab90ab59d7a4a6b60 | |c516efa7a9830 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Alright, marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=38823
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |gdiplus
https://bugs.winehq.org/show_bug.cgi?id=38823
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.17.