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 5491

Summary: [PATCH] Implement MinimizeWindow for Wayland
Product: SDL Reporter: Cameron Gutman <cameron.gutman>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   
Attachments: Patch

Description Cameron Gutman 2021-01-22 03:55:54 UTC
Wayland has xdg_toplevel_set_minimized()/zxdg_toplevel_v6_set_minimized() which pretty much does what it says on the tin, so we can implement MinimizeWindow() with that.

The only real gotchas are:
- there's no API to programmatically un-minimize a window
- we need to manually re-enter fullscreen mode after the window is un-minimized by the user
Comment 1 Cameron Gutman 2021-01-22 03:57:08 UTC
Created attachment 4684 [details]
Patch

Tested on GNOME 3.38.3 and KDE Plasma 5.20.5
Comment 2 Sam Lantinga 2021-01-22 06:40:07 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/d5eb94fe3daf