Skip to content

Commit 79c208d

Browse files
Added documentation for xfce4 focus stealing issue
1 parent b67c4a0 commit 79c208d

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

doc/user-guide.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
- [Dock Widget Size / Minimum Size Handling](#dock-widget-size--minimum-size-handling)
7070
- [Styling](#styling)
7171
- [Disabling the Internal Style Sheet](#disabling-the-internal-style-sheet)
72+
- [Using ADS on Linux](#using-ads-on-linux)
73+
- [Supported Distributions](#supported-distributions)
74+
- [Requirements](#requirements)
75+
- [Manjaro xfce 25.0.1 and Xubuntu 24.04.2 issues](#manjaro-xfce-2501-and-xubuntu-24042-issues)
7276

7377
## Configuration Flags
7478

@@ -953,3 +957,36 @@ just call the function for settings the stylesheet with an empty string.
953957
DockManager->setStyleSheet("");
954958
```
955959
960+
## Using ADS on Linux
961+
962+
### Supported Distributions
963+
964+
Unfortunately, there is no such thing as a Linux operating system. Linux is a heterogeneous environment with a variety of different distributions. So it is not possible to support "Linux" like it is possible for Windows. It is only possible to support and test a small subset of Linux distributions. The library can be compiled for and has been developed and tested with some Linux distributions. Depending on the used window manager or compositor, dock widgets
965+
with native title bars are supported or not. If native title bars are not supported,
966+
the library switches to `QWidget` based title bars.
967+
968+
- **Kubuntu 18.04 and 19.10** - uses KWin - no native title bars
969+
- **Ubuntu 18.04, 19.10 and 20.04** - native title bars are supported
970+
- **Ubuntu 22.04** - uses Wayland -> no native title bars
971+
972+
### Requirements
973+
974+
There are some requirements for the Linux distribution that have to be met:
975+
976+
- an X server that supports ARGB visuals and a compositing window manager. This is required to display the translucent dock overlays ([https://doc.qt.io/qt-5/qwidget.html#creating-translucent-windows](https://doc.qt.io/qt-5/qwidget.html#creating-translucent-windows)). If your Linux distribution does not support this, or if you disable this feature, you will very likely see issue [#95](https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/95).
977+
- Wayland is not properly supported by Qt yet. If you use Wayland, then you should set the session type to x11: `XDG_SESSION_TYPE=x11 ./AdvancedDockingSystemDemo`. You will find more details about this in issue [#288](https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/288).
978+
979+
Screenshot Kubuntu:
980+
![Advanced Docking on Kubuntu Linux](linux_kubuntu_1804.png)
981+
982+
Screenshot Ubuntu:
983+
![Advanced Docking on Ubuntu Linux](linux_ubuntu_1910.png)
984+
985+
### Manjaro xfce 25.0.1 and Xubuntu 24.04.2 issues
986+
987+
There is a known focus stealing issue with the xfce4 compositor reported in issue [#734]. This issue
988+
can be solved by enabling the setting **Activate focus stealing prevention**. `Settings > Window Manager Tweaks` has a tab called `Focus`.
989+
990+
Selecting `Activate focus stealing prevention` and `Do nothing` for `When a window raises itself`, seems to mitigate the issue. Deselecting `Enable display compositing` on the `Compositor` tab, also works.
991+
992+
![Window Manager Tweaks](xfce4_focus_stealing_issue.png)

doc/xfce4_focus_stealing_issue.png

31.7 KB
Loading

0 commit comments

Comments
 (0)