aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2022-11-25 18:40:44 +0100
committerGitHub <noreply@github.com>2022-11-25 17:40:44 +0000
commit70f2da8fdf313c22ffcb72d492cc7c865d6cb77e (patch)
tree75ee24c6cb33456a7cb56000275288d75d2fe9a3
parent5d3ef7761b9df5ea0db5bdff1eeb7a0e4a80c4fe (diff)
ava: Fix invisible vulkan window on Linux (#3901)1.1.389
Co-authored-by: emmauss <emmausssss@gmail.com> Co-authored-by: emmauss <emmausssss@gmail.com>
-rw-r--r--Ryujinx.Ava/Ui/Controls/EmbeddedWindow.cs6
-rw-r--r--Ryujinx.Ava/Ui/Controls/VulkanEmbeddedWindow.cs2
2 files changed, 5 insertions, 3 deletions
diff --git a/Ryujinx.Ava/Ui/Controls/EmbeddedWindow.cs b/Ryujinx.Ava/Ui/Controls/EmbeddedWindow.cs
index d9fae93a..f60ee7e0 100644
--- a/Ryujinx.Ava/Ui/Controls/EmbeddedWindow.cs
+++ b/Ryujinx.Ava/Ui/Controls/EmbeddedWindow.cs
@@ -6,8 +6,8 @@ using SPB.Graphics;
using SPB.Platform;
using SPB.Platform.GLX;
using SPB.Platform.X11;
+using SPB.Windowing;
using System;
-using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Threading.Tasks;
@@ -96,12 +96,14 @@ namespace Ryujinx.Ava.Ui.Controls
[SupportedOSPlatform("linux")]
IPlatformHandle CreateLinux(IPlatformHandle parent)
{
- X11Window = PlatformHelper.CreateOpenGLWindow(FramebufferFormat.Default, 0, 0, 100, 100) as GLXWindow;
+ X11Window = new GLXWindow(new NativeHandle(X11.DefaultDisplay), new NativeHandle(parent.Handle));
WindowHandle = X11Window.WindowHandle.RawHandle;
X11Display = X11Window.DisplayHandle.RawHandle;
+ X11Window.Hide();
+
return new PlatformHandle(WindowHandle, "X11");
}
diff --git a/Ryujinx.Ava/Ui/Controls/VulkanEmbeddedWindow.cs b/Ryujinx.Ava/Ui/Controls/VulkanEmbeddedWindow.cs
index d2c980dd..4954c882 100644
--- a/Ryujinx.Ava/Ui/Controls/VulkanEmbeddedWindow.cs
+++ b/Ryujinx.Ava/Ui/Controls/VulkanEmbeddedWindow.cs
@@ -20,7 +20,7 @@ namespace Ryujinx.Ava.Ui
}
else if (OperatingSystem.IsLinux())
{
- _window = X11Window;
+ _window = new SimpleX11Window(new NativeHandle(X11Display), new NativeHandle(WindowHandle));
}
else
{