Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add documentation on how to test CSD on a normal compositor

Dmitry Kazakov7b1de23ca963
diff --git a/plugins/platforms/wayland/waylandcolormanagement/WAYLAND_HACKING.md b/plugins/platforms/wayland/waylandcolormanagement/WAYLAND_HACKING.md
index cbf8bb5104..ad2dacc9d5 100644
--- a/plugins/platforms/wayland/waylandcolormanagement/WAYLAND_HACKING.md
+++ b/plugins/platforms/wayland/waylandcolormanagement/WAYLAND_HACKING.md
@@ -94,4 +94,21 @@ You can set `WAYLAND_DEBUG` environment variable:
```bash
WAYLAND_DEBUG=1 krita | grep -E 'image|color'
-```
\ No newline at end of file
+```
+
+## How to test client-side-decorations rendering code
+
+Gnome/Mutter refuse to implement server-side window decorations
+(https://gitlab.gnome.org/GNOME/mutter/-/issues/217), so on Gnome
+Krita uses the decorations provided by Qt. To test this codepath
+on a normal compositor with SSD, one needs to disable the
+corresponding protocol support in Qt and choose the CSD plugin
+name:
+
+```bash
+QT_QPA_PLATFORM=wayland QT_WAYLAND_DISABLED_INTERFACES=zxdg_decoration_manager_v1 QT_WAYLAND_DECORATION=adwaita krita
+
+# or
+
+QT_QPA_PLATFORM=wayland QT_WAYLAND_DISABLED_INTERFACES=zxdg_decoration_manager_v1 QT_WAYLAND_DECORATION=bradient krita
+```