Can't interact with some GUI program due to weird window focusing issue when using external monitor

I launch a QT5 program in an appvm but can’t interact with it using pointers. Sadly the GTK filepicker isn’t particularly friendly for keyboard users. (Can’t enable stuff like show dotfiles)
Whenever I click into it, the clicks go into the titlebar of an XFCE Terminal tab below it. It does not matter if the program was launched from that terminal or not.
As if the current window is invisible to the pointer.

Extra details: I use an external monitor that is hi dpi.
Whenever I add it XFCE goes into weird scaling behaviour.
Thats why I deactivate the internal monitor and set only the external one active.
But still happens.

The focus issue does not happen with internal monitor as primary.

It seems the virtual pixel coordinates are to blame. Depending on where in that virtual “space” the internal monitor is, the pointer is at an offset. In my first case the offset was so far left up that it was always in that terminal tab.

How could I fix this phenomenon generally?

EDIT: Even with both displays active, I can’t arrange them in a way that QT5 things have the correct coordinate mapping. I will need to use the internal display only to use them.

1 Like

Just after writing this and editing in changes while finding out details, I found a bunch of other threads using xfce monitor click

1 Like

Hi @Antarctica, welcome to the forum!

This should fix it:

2 Likes

XD

thanks

1 Like