Xpra: Ticket #1916: Bug with stayOnTop function

I have been forwarding a software with xpra and everything is fine except one thing. When I want to use the login function, a pop-up window is supposed to appear to let me put login and password but with xpra the windows appears and disappears instantaneously !

So I have investigated and I had reproduced the bug by using the stayOnTop function. stayOnTop is a function over the framework Qt, I cannot really know how it works because it's proprietary software ...

So I succeeded "fixing" the bug with a trick:

while true; do
    xwininfo -display $XPRADISPLAY -root -children | tail -n+7 | head -n-1 | grep -viPe '(xpra|wccoaui|has no name?)' | xargs -L 1 | cut -d' ' -f1 | xargs -i xdotool windowmap {}
    sleep 1
done

I catch the window and I force it to reappear, but there is probably a much better way to do it.

Here: https://pastecode.xyz/view/raw/0fdc7b5f , there is a diff between before apply the fix and after, it seem that it comes from map state and parent window fields, they differ in the diff.

I hop I gave you enough information to understand the issue, thank you in advance.



Wed, 11 Jul 2018 16:39:50 GMT - Antoine Martin: owner, description changed

Please provide a sample application Qt so that I can reproduce the bug.

You may also want to run the server with the "-d window" flag, just long enough to trigger the bug as this is quite verbose.

FYI: in 2.4, you can force map all windows with:

xpra control $XPRADISPLAY show-all-windows

Wed, 11 Jul 2018 22:58:08 GMT - ibuprofene:

I didn't find this option:

2018-07-12 00:56:04,500 invalid command: 'show-all-windows' (must be one of: suspend, help, encoding, focus, toggle-feature, set-lock, sound-output, unlock-batch-delay, quality, video-region-detection, min-speed, start-child, compression, reset-video-region, lock-batch-delay, speed, auto-refresh, idle-timeout, video-region, start, min-quality, print, scaling, send-file, resume, video-region-enabled, encoder, open-url, set-sharing, key, client-property, name, scaling-control, server-idle-timeout, ungrab, send-notification, refresh, video-region-exclusion-zones, client, workspace, set-ui-driver, debug, clipboard-direction, hello, close-notification)

And

$ xpra --version
xpra v2.4-r19869

Do I have the good version ?


Thu, 12 Jul 2018 02:56:01 GMT - Antoine Martin: milestone set

xpra v2.4-r19869 Do I have the good version ?

No, that's too old.

You have not specified what distribution you are running, so I can't say if that's expected or not.


Thu, 12 Jul 2018 08:09:14 GMT - ibuprofene:

Centos 7.5, I added the beta repository.


Thu, 12 Jul 2018 12:59:44 GMT - Antoine Martin:

Centos 7.5, I added the beta repository.

Try now.


Thu, 12 Jul 2018 14:00:29 GMT - ibuprofene:

Sorry but I have still the same version.


Fri, 13 Jul 2018 12:23:42 GMT - ibuprofene:

Ok, I retried this morning and now it has been updated, unfortunately the option show-all-windows does not fix the problem, I'm trying to reproduce the bug with Qt but I don't know exactly what are the Qt functions that they used to build the stayOnTop function so I don't know how to do


Wed, 22 Aug 2018 15:49:11 GMT - Antoine Martin: attachment set

pyqt4 example that requests stay-on-top


Wed, 22 Aug 2018 15:50:15 GMT - Antoine Martin: status, summary changed; resolution set

The example attached works fine (found here: pyqt always on top)

So I am closing this as 'needinfo'. Feel free to re-open if you can provide more details.


Sat, 23 Jan 2021 05:37:12 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1916