Bug 120584 - gtk3: document scrolling doesn't work in KDE Plasma session with inactive window
Summary: gtk3: document scrolling doesn't work in KDE Plasma session with inactive window
Status: RESOLVED DUPLICATE of bug 119976
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.1.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: KDE, KF5 GTK3
  Show dependency treegraph
 
Reported: 2018-10-14 11:05 UTC by tempel.julian
Modified: 2018-12-03 13:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tempel.julian 2018-10-14 11:05:14 UTC
It should be possible to scroll inside of a document by simply hovering the mouse cursor on top of a window, without having to select it as active window first by clicking it.

This does work with any GTK 3 UI in a KDE Plasma 5.14 Xorg session, but not with LibreOffice and its gtk3_kde5 and gtk3 VCLs. When hovering the cursor on top of the LO window, no scrolling happens when using mousewheel scrolling.

However, there is one odd detail: When hovering the mouse cursor exactly on top of the scroll bar and then doing mousewheel scrolling, the scrollbar briefly flashes (without scrolling, though). So there apparently is some input send to the LO window, but it seems it doesn't get handled correctly.

In a Gnome Xorg session, scrolling inside of documents works without having to activate the window by clicking it.
But: Again there is the weird behavior when moving the cursor exactly onto the scrollbar. When the window isn't activated, the scrollbar just flashes instead of scrolling, like in the KDE Plasma session.
This does not happen with any other GTK application.

So, to sum up:
Mouse wheel scrolling should work also for inactive windows, no matter if KDE Plasma or Gnome session. And it also shouldn't matter if the mouse cursor is placed directly onto the scrollbar or not.

I btw. originally reported this bug to KDE, their opinion is that it needs to be fixed in LO:
https://bugs.kde.org/show_bug.cgi?id=399138
Comment 1 Jan-Marek Glogowski 2018-11-14 17:24:15 UTC
Works for me in master on KDE5 (Debian buster local, via remove SSH in a patched Ubuntu 18.04 chroot with KF 5.44) for gen, kde4, qt5 (+ kde5), gtk(2) but *not* gtk3 (+ gtk3_kde5), so I guess it's a gtk3 specific problem. gtk3_kde5 just adds a KF5 filepicker but otherwise is the same code as gtk3.

Now I don't know why it works in Gnome Xorg, so there might be something desktop-specific involved.

Just a general note: always check About -> LibreOffice for the used VCL plugin when reporting. That info there is selectable text so easy to copy and has some additional information, which might help debugging.

LO has fallbacks for missing VCL plugins, depending on the detected desktops, but About -> LibreOffice tells which VCL plugin is actually in use. That code is even used if you override the default detection via SAL_USE_VCLPLUGIN, so a missing default would still allow LO to start.

I had commented the kde5 plugin in my build, but not qt5, and LO showed the broken gtk3 behavior for kde5, which puzzled me at first... turned out it used gtk3_kde5 until I enabled the kde5 VCL for the build :-)
Comment 2 Michael Weghorn 2018-11-14 19:03:21 UTC
(In reply to Jan-Marek Glogowski from comment #1)
> Works for me in master on KDE5 (Debian buster local, via remove SSH in a
> patched Ubuntu 18.04 chroot with KF 5.44) for gen, kde4, qt5 (+ kde5),
> gtk(2) but *not* gtk3 (+ gtk3_kde5), so I guess it's a gtk3 specific
> problem. gtk3_kde5 just adds a KF5 filepicker but otherwise is the same code
> as gtk3.
Same for me on Debian buster and a local build, i.e. no SSH/chroot indirection (only kde5, gen, gtk2 and gtk3 tested).
Comment 3 Xisco Faulí 2018-11-15 16:05:33 UTC
it works fine for me in

Versió: 6.1.3.2
ID de la construcció: 1:6.1.3~rc2-0ubuntu0.16.04.1
Fils de CPU: 4; SO: Linux 4.15; Renderitzador de la IU: per defecte; VCL: gtk3; 
Configuració local: ca-ES (ca_ES.UTF-8); Calc: group threaded
Comment 4 Caolán McNamara 2018-12-03 13:57:49 UTC

*** This bug has been marked as a duplicate of bug 119976 ***