diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-14 00:46:32 +0000 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-06-15 10:30:56 +0200 |
commit | 1a1e13333e8145c7a78ddb23b540b0832cadd446 (patch) | |
tree | 4783a0e7ba32c65bf3cbe150f4c4e955aa3681fe /configure.ac | |
parent | KDE5 move screensafer inhibiting code into Qt5 (diff) | |
download | core-1a1e13333e8145c7a78ddb23b540b0832cadd446.tar.gz core-1a1e13333e8145c7a78ddb23b540b0832cadd446.zip |
tdf#125921 Qt5 set WM_CLASS for top level windows
Uses the same naming then the gtk3 backend, i.e. "libreoffice"
for the instance name and different class names for the module
windows, like "libreoffice-writer".
These names are referenced in the desktop files a StartupWMClass
and for example used to pin an app to the task bar.
Change-Id: Ic9b8890536f6413ab59d2e0da866e2280ab3181a
Reviewed-on: https://gerrit.libreoffice.org/74014
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
(cherry picked from commit 77a3c443d35c7d966217f02ea9189cb1819c7828)
Reviewed-on: https://gerrit.libreoffice.org/74082
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 22e41055dc87..171fabeaaf2b 100644 --- a/configure.ac +++ b/configure.ac @@ -11274,7 +11274,9 @@ then QT5_LIBS="-L$qt5_libdir -lQt5Core -lQt5Gui -lQt5Widgets -lQt5Network" if test "$USING_X11" = TRUE; then - QT5_LIBS="$QT5_LIBS -lQt5X11Extras" + PKG_CHECK_MODULES(QT5_XCB,[xcb],,[AC_MSG_ERROR([XCB not found, which is needed for correct app grouping in X11.])]) + QT5_CFLAGS="$QT5_CFLAGS $QT5_XCB_CFLAGS" + QT5_LIBS="$QT5_LIBS $QT5_XCB_LIBS -lQt5X11Extras" QT5_USING_X11=1 AC_DEFINE(QT5_USING_X11) fi |