Qt-Advanced-Docking-System icon indicating copy to clipboard operation
Qt-Advanced-Docking-System copied to clipboard

change to DockManager.cpp causes notepadnext 'find' to continuously lose focus

Open noabody opened this issue 8 months ago • 1 comments

https://github.com/dail8859/NotepadNext/issues/744

Prior to the notepadnext project update of ADS, the 'find' dialog child window remained focused 'in foreground' but after, focus is lost almost immediately.

It is possible that changes to ADS also require a change to notepadnext but the developer has responded that they are unaware of any need to change their code.

Because it is not clear what the exact cause of the problem is, or where it lies, this report is FYI.

noabody avatar Apr 07 '25 02:04 noabody

@noabody Thank you for reporting this problem but I have no idea how to fix this because I do not know why calling raise for a window changes the focus - this is strange.

githubuser0xFFFF avatar Apr 17 '25 07:04 githubuser0xFFFF

@noabody Could you please test, if this issue also occurs on Ubuntu 22.04. Arch Linux us not a supported ADS platform.

Tank you.

githubuser0xFFFF avatar May 09 '25 03:05 githubuser0xFFFF

NotepadNext-v0.11-x86_64.AppImage works as expected with live boot of ubuntu-22.04.5-desktop-amd64.iso.

noabody avatar May 09 '25 22:05 noabody

@noabody Thank you for testing this. Then it seem to be a very special Arch Linux related issue. I do not have Arch Linux here so I'm not able to fix this.

Should I keep this issue open?

githubuser0xFFFF avatar May 09 '25 22:05 githubuser0xFFFF

Problem is confirmed on Manjaro xfce 25.0.1 and Xubuntu 24.04.2. Looks like an issue with xfce4's compositor.

Settings > 'Window Manager Tweaks' has a tab called 'Focus'.

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.

Thank you @githubuser0xFFFF for your attention. This was always an FYI and you are free to close at your discretion. I am concerned that the Xfce compositor setting that solves this problem is specifically designed to prevent the so-called 'stealing' of focus.

Image

noabody avatar May 10 '25 13:05 noabody

Added this to user guide

githubuser0xFFFF avatar Jun 12 '25 12:06 githubuser0xFFFF