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 - In Wayland, Endless Sky game's window drawn in the wrong place when alt-tabbing away and back again
Summary: In Wayland, Endless Sky game's window drawn in the wrong place when alt-tabbi...
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-07 20:07 UTC by Nate Graham
Modified: 2017-03-02 17:07 UTC (History)
2 users (show)

See Also:


Attachments
test case (1.23 KB, text/x-c++src)
2017-02-05 19:26 UTC, Kārlis Seņko
Details

Note You need to log in before you can comment on or make changes to this bug.
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.