From 8d0db3127f67f9374919c6faa23bbdc20c3bd89b Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 24 Mar 2017 09:38:16 -0400 Subject: [PATCH] better window flags --- simpledisplay.d | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index e754fd5..9888b3e 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -886,13 +886,16 @@ else window type already is a good match for what you want to do, you should just use [WindowFlags.normal], the default, which will do the right thing for your users. + + The window flags will not always be honored by the operating system + and window managers; they are hints, not commands. +/ enum WindowFlags : int { - normal, /// - skipTaskbar, /// - alwaysOnTop, /// - alwaysOnBottom, /// - cannotBeActivated, /// + normal = 0, /// + skipTaskbar = 1, /// + alwaysOnTop = 2, /// + alwaysOnBottom = 4, /// + cannotBeActivated = 8, /// dontAutoShow = 0x1000_0000, /// Don't automatically show window after creation; you will have to call `show()` manually. }