Skip to content
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

X11 implementation of SDL_RaiseWindow possibly uses wrong timestamp when sending _NET_ACTIVE_WINDOW #1918

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.3
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2015-07-10 14:22:57 +0000, Dmitry 'RCL' Rekman wrote:

This has been noticed with UE4: https://answers.unrealengine.com/questions/255771/strange-window-behavior.html

When raising window, the following message is printed (in Gnome):

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3a00046

This is because X11_XRaiseWindow is using CurrentTime as a timestamp when sending _NET_ACTIVE_WINDOW. According to the spec (http://standards.freedesktop.org/wm-spec/1.3/ar01s03.html):

"The timestamp is Client's last user activity timestamp (see _NET_WM_USER_TIME) at the time of the request"

On 2015-07-10 14:28:00 +0000, Dmitry 'RCL' Rekman wrote:

(was too quick to send the previous comment): ... according to the spec, this should match _NET_WM_USER_TIME (which SDL never sets either).

On 2016-01-04 21:26:20 +0000, Ryan C. Gordon wrote:

This is now fixed in https://hg.libsdl.org/SDL/rev/5229da175b57, thanks!

--ryan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant