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 3738

Summary: [Patch] SDL_WINDOW_SKIP_TASKBAR support for Windows
Product: SDL Reporter: Ioannis Makris <imak>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: imak
Version: 2.0.5   
Hardware: x86   
OS: Windows 7   
Attachments: patch for SDL_WINDOW_SKIP_TASKBAR support, against 2.0.5 source, under /src/video/windows

Description Ioannis Makris 2017-08-12 23:34:17 UTC
Created attachment 2829 [details]
patch for SDL_WINDOW_SKIP_TASKBAR support, against 2.0.5 source, under /src/video/windows

A small patch to add support for SDL_WINDOW_SKIP_TASKBAR on Windows.

(Not thoroughly tested)

The idea is that if the window is borderless (WS_POPUP), then it may also simply skip the taskbar with the WS_EX_TOOLWINDOW flag.
If it is not borderless, this is not an option, because the border of WS_EX_TOOLWINDOW is different, but the same result can probably be achieved by making creating an invisible parent window.
Comment 1 Sam Lantinga 2017-08-13 01:41:42 UTC
This is already implemented in the latest SDL snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip

Thanks!
Comment 2 Ioannis Makris 2017-08-18 16:05:28 UTC
With your implementation, when a window that is both borderless and skips the taskbar is minimized, the result seems a bit strange.
But if this is the desired behaviour, then it's good.
Comment 3 Sam Lantinga 2017-08-18 17:56:45 UTC
What happens in that case with your implementation?
Comment 4 Ioannis Makris 2017-08-18 21:54:56 UTC
As I tested again, the behaviour is exactly the same.
I had earlier observed some artifacts which were unrelated to SDL - my sincere apologies for the noise.
Comment 5 Sam Lantinga 2017-08-18 23:21:30 UTC
Okay, thanks for checking!