Skip to content

Commit 51a5c8e

Browse files
committed
Change the default OverlayBox implementations.
Win32LayeredBox is preferable on Windows because of WS_EX_TRANSPARENT. Otherwise, the split window approach is simpler.
1 parent f85dffc commit 51a5c8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xalia/Sdl/Win32WindowingSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public override Task ShowKeyboardAsync()
3636

3737
public override OverlayBox CreateOverlayBox()
3838
{
39-
if (Utils.TryGetEnvironmentVariable("XALIA_LAYERED_BOX", out var value) &&
39+
if (!Utils.TryGetEnvironmentVariable("XALIA_LAYERED_BOX", out var value) ||
4040
value != "0")
4141
return new Win32LayeredBox(this);
4242
return base.CreateOverlayBox();

xalia/Sdl/WindowingSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static WindowingSystem Instance
4848

4949
public virtual OverlayBox CreateOverlayBox()
5050
{
51-
if (Utils.TryGetEnvironmentVariable("XALIA_SPLIT_BOX", out var value) &&
51+
if (!Utils.TryGetEnvironmentVariable("XALIA_SPLIT_BOX", out var value) ||
5252
value != "0")
5353
return new SplitOverlayBox(this);
5454
return new SdlOverlayBox(this);

0 commit comments

Comments
 (0)