We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3548

Summary: In Wayland, Endless Sky game's window drawn in the wrong place when alt-tabbing away and back again
Product: SDL Reporter: Nate Graham <pointedstick>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: karlis3p70l1ij, pointedstick
Version: don't know   
Hardware: x86_64   
OS: Linux   
Attachments: test case

Description Nate Graham 2017-01-07 20:07:40 UTC
Software: Fedora 25 + GNOME 3.22 + Wayland

Hardware: Kaby Lake (late 2016) HP Spectre x360 laptop, Intel HD 620 integrated graphics card, 13.3" display, Kernel 4.10-rc2 (though this has happened since 4.8).

A graphical anomaly is seen with the SDL-based video game Endless Sky on Fedora 25 with Wayland. When the game is being played full-screen, alt-tabbing away and back again results in the game's window being drawn in the wrong location: offset down and to the right. Here is a screen recording indicating the problem:

http://hommelscitadel.com/wp-content/uploads/2016/12/not_quite_right.webm

The issue is 100% reproducible with Wayland every way I try, but not seen if I log into an X session and try the same things.

I originally filed this against Endless Sky: https://github.com/endless-sky/endless-sky/issues/1902. The developer said it was SDL or Wayland (https://bugs.freedesktop.org/show_bug.cgi?id=99088). The Wayland folks say it's not them, so... here I am :)
Comment 1 Kārlis Seņko 2017-02-05 19:26:20 UTC
Created attachment 2696 [details]
test case

Was able to repeat with 2.0.5 and attached test case.