-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WM_TAKE_FOCUS messages can have wrong timestamp #4484
Comments
what we want is unsigned long, so have to use 'long' which gets translated correctly to: __Pyx_PyInt_From_unsigned_long(__pyx_v_xevent.xproperty.time);
Looks like the same issue as #4439 The helpful hint was the 37 days: round(2**32/1000/60/60/24)
50 I think that this is a regression caused by fef8b55 in v5. The actual code setting the focus is here: xpra/xpra/x11/models/window.py Lines 926 to 955 in d43630d
And the server time is obtained from here: xpra/xpra/x11/bindings/window.pyx Lines 1434 to 1445 in 3e25ef4
By inspecting the generated C code, I believe that 3e25ef4 should fix this. |
what we want is unsigned long, so have to use 'long' which gets translated correctly to: __Pyx_PyInt_From_unsigned_long(__pyx_v_xevent.xproperty.time);
what we want is unsigned long, so have to use 'long' which gets translated correctly to: __Pyx_PyInt_From_unsigned_long(__pyx_v_xevent.xproperty.time);
what we want is unsigned long, so have to use 'long' which gets translated correctly to: __Pyx_PyInt_From_unsigned_long(__pyx_v_xevent.xproperty.time);
Describe the bug
Somehow xpra is sending applications WM_TAKE_FOCUS with the wrong timestamp. This confuses Qt and causes copy-to-clipboard to fail with
qt.qpa.clipboard: QXcbClipboard::setMimeData: Cannot set X11 selection owner
It usually only happens after several weeks of uptime. Restarting xpra doesn't seem to help.
To Reproduce
Steps to reproduce the behavior:
kwrite
or some other Qt application with copy-to-clipboard functionalitySystem Information (please complete the following information):
Additional context
Add any other context about the problem here.
Please see "reporting bugs" in the wiki section.
The text was updated successfully, but these errors were encountered: