Bug 156033 - Picture Content Control usage with QT5/KDE interface
Summary: Picture Content Control usage with QT5/KDE interface
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:24.2.0 target:7.6.3
Keywords:
Depends on:
Blocks: KDE, KF5
  Show dependency treegraph
 
Reported: 2023-06-23 08:53 UTC by Alberto
Modified: 2023-10-18 20:27 UTC (History)
1 user (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 Alberto 2023-06-23 08:53:55 UTC
I am using a LibreOffice with a Linux KDE distribution (e.g. OpenSUSE), so I have the package libreoffice-qt5 installed.
If I add to writer document a Form->Picture Content Control and than I "Click" on the rectangle for insert a picture then "kde-style" file manager cannot contro the the mouse.
I have to use the keyboard tab control and arrow for the selection of the image.
Workaround: remove libreoffice-qt package and install libreoffice-gtk3 package but file manager as gtk style.
Comment 1 Michael Weghorn 2023-07-10 05:44:41 UTC
I can reproduce:

1) start Writer with kf5 VCL plugin
2) in menu: "Form" -> "Content Controls" -> "Picture"
3) click on the inserted frame

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 81726f5af5fda25f0d92ffc8458d7f24eb16f408
CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 2 Alberto 2023-10-02 11:48:02 UTC
Problem present also in Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 4; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: it-CH (it_IT.UTF-8); UI: it-IT
Calc: threaded

Note for OpenSUSE 15.4.
If I select kde login with Wayland and not X11, when I click the first time on the image file (and nothing is happening) and then re-click on the image to insert in the picture content control, the "focus" of the cursor is right but the image is putting in an other place on the document, similar to using the function "insert picture" in the document and not inside of the picture content control form.
Comment 3 Alberto 2023-10-02 12:34:15 UTC
Note for OpenSUSE 15.4
If I do the login with IceWM DM, the functionality of the picture content control is right
Comment 4 Michael Weghorn 2023-10-18 07:29:39 UTC
When I set environment variable SAL_NO_MOUSEGRABS=1 in a KDE Plasma X11 session, the mouse can be used in the file dialog.
(Setting that environment variable shouldn't be necessary, but might be helpful as a workaround at least.)
Comment 5 Michael Weghorn 2023-10-18 09:04:51 UTC
Potential fix: https://gerrit.libreoffice.org/c/core/+/158109
Comment 6 Commit Notification 2023-10-18 11:48:16 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/680ae3e989c3b665b29f536c2e30dd86bbc3edac

tdf#156033 sw: Don't capture mouse when executing file dlg

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2023-10-18 20:27:11 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/16940dc248068133363153a1c2d41cd2d0102460

tdf#156033 sw: Don't capture mouse when executing file dlg

It will be available in 7.6.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.