Bug 487202

Summary: Filter Dialog Closes / Applies When Losing Focus
Product: [Applications] krita Reporter: minnobrine
Component: FiltersAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jastxakajasmineteax
Priority: NOR    
Version First Reported In: 5.2.2   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description minnobrine 2024-05-18 20:02:53 UTC
Sent from: https://krita-artists.org/t/filter-dialogs-close-apply-when-losing-focus/91670/11

I was told to make a new report in the above thread, but this is a duplicate of: https://bugs.kde.org/show_bug.cgi?id=352747 

When using a dialog under filter toolbar, if you click off the dialog anywhere onto Krita, the dialog acts like you hit the apply button, and closes.

If you have 2 copies of Krita running, and you click into the second one, the dialog closes, but if you click off of Krita onto another application this does not close the dialog.


STEPS TO REPRODUCE
1. Open a filter dialog, Filter > Adjust > Dodge  (or any other)
2. Click onto the canvas, or anywhere on Krita that is not the dialog
3. The dialog will close as if you hit apply

OBSERVED RESULT
The dialog applies the filter

EXPECTED RESULT
The dialog does nothing

SOFTWARE/OS VERSIONS

Qt Version (compiled): 5.15.7
Qt Version (loaded): 5.15.7
Appimage build: Yes

Linux: EndeavourOS rolling x86_64
Kernel: 6.8.9-arch1-2
WM: i3 (X11)

**I was also able to reproduce in a VM with:**
Linux: EndeavourOS rolling x86_64
Kernel: 6.8.9-arch1-2
DE: KDE Plasma 6.0.4 
WM: KWin (X11)

Loaded Python Plugins
	colorspace
	comics_project_management_tools
	documenttools
	exportlayers
	filtermanager
	lastdocumentsdocker
	plugin_importer
	quick_settings_docker
	scripter
	tenbrushes
	tenscripts
Comment 1 Jasmint 2026-02-08 06:50:42 UTC
Hi, dropping by to confirm that this is still an issue, and a pretty annoying one at that!
The main problem this bug presents is that sometimes, my filter windows (and even windows from Buli Notes) will spawn somewhere far away on the screen, so the window immediately closes as soon as I try to move to it, as the focus switches immediately back to the main window and applies the filter.
My workaround is to switch focus using a hotkey, which also moves my cursor to the window automatically. However, this may not be the case for all WM users. Before I figured this out, I was spamming the hotkey to open the filter window to reach it, particularly HSV adjustment.

Snippets from system info:
Qt
  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

OS Information (using Garuda Linux with Steam version)
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 6.18.6-lqx1-1-lqx
  Pretty Productname: Steam Runtime 2 (soldier)
  Product Type: steamrt
  Product Version: 2
  Desktop: Hyprland
  Appimage build: Yes

Loaded Python Plugins
	bulinotes
	theme_creator
	colorspace
	comics_project_management_tools
	documenttools
	exportlayers
	filtermanager
	lastdocumentsdocker
	plugin_importer
	quick_settings_docker
	scripter
	tenbrushes
	tenscripts