Configuration Window doesn't tile in some window managers

Hi @Andreas_Hegenberg ,

This isn't strictly a bug with BetterTouchTool but wasn't sure which topic to use so consider this unexpected behaviour.

I'm not a Apple/Swift developer so excuse my ignorance please :pray:

BTT's Configuration Window is sometimes not detected by certain window managers like OmniWM or paneru (my current window manager).

While reading through paneru's codebase I stumbled onto the concept of application activation policies. I noticed in BTT's Info.plist that LSUIElement is set to true. My understanding is that this would make BTT follow NSApplicationActivationPolicyAccessoryBehavior and therefore it is not treated as standard application.

I believe this is the correct setting for BTT but then my question is does BTT set the activation policy for certain windows that appear on screen like the Configuration Window at runtime?

You would use something like

swiftNSApp.setActivationPolicy()

If it does then the issue is with my window manager and I will try to make a PR.

If not, please can the activation policy be set for regular windows that BTT spawns such as the Configuration Window please?:pray:

I have already confirmed that removing LSUIElement fixes the tiling issue in paneru but that breaks the app and it shows corruption / licensing errors etc.

Thanks for reading!

Unfortunately activation policy can only be changed for the whole process, BTT does that dynamically when it has windows that need to show in dock. It is not a good idea for window managers to look at LSUIElement, there are tons of apps that have this set to true but still have windows that can be resized

I see. Thank you for explaining Andreas :folded_hands: I'll pass it on to the paneru developer. Probably need more realtime detection of windows.