[graphics/krita] plugins/dockers/palettedocker: Open the palette editor on top of the main window

Dmitry Kazakov <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit be893b0d3b2db77cd92cedbf09d92187c34f6ceb by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 31/07/2026 at 07:44.
Pushed by dkazakov into branch 'master'.

Open the palette editor on top of the main  window

Before this some compositors (sway) would not by default display it as a
floating window

M  +1    -1    plugins/dockers/palettedocker/palettedocker_dock.cpp

https://invent.kde.org/graphics/krita/-/commit/be893b0d3b2db77cd92cedbf09d92187c34f6ceb

diff --git a/plugins/dockers/palettedocker/palettedocker_dock.cpp b/plugins/dockers/palettedocker/palettedocker_dock.cpp
index 8b22af01a90..a2a433b251b 100644
--- a/plugins/dockers/palettedocker/palettedocker_dock.cpp
+++ b/plugins/dockers/palettedocker/palettedocker_dock.cpp
@@ -329,7 +329,7 @@ void PaletteDockerDock::slotSetColorSet(KoColorSetSP colorSet)
 
 void PaletteDockerDock::slotEditPalette()
 {
-    KisDlgPaletteEditor dlg(m_paletteEditor.data());
+    KisDlgPaletteEditor dlg(m_paletteEditor.data(), m_view->mainWindowAsQWidget());
     if (!m_currentColorSet) { return; }
     dlg.initialize(m_model);
     m_paletteEditor->startEditing();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.