Replies: 1 comment 1 reply
-
|
I do not think there is a separate “borderless/windowed fullscreen” state exposed by Silk.NET 2.x right now. From the current windowing API,
The portable Silk.NET workaround is basically the one you already found: var monitor = Monitor.GetMainMonitor();
options.WindowState = WindowState.Normal;
options.WindowBorder = WindowBorder.Hidden;
options.Position = monitor.Bounds.Origin;
options.Size = monitor.Bounds.Size;or set the border/position/size from If you specifically need KDE's “Fullscreen” window action, that looks like a WM-level EWMH/KWin state rather than something Silk.NET's common windowing API currently exposes. So the choices are probably: use the borderless-normal-window workaround, add a platform-specific X11/KWin call after the native window is created, or open a feature request for a distinct |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just curious if there's a trick to a borderless fullscreen mode. FWIW - I'm on Linux (specifically CachyOS, KDE Plasma).
I've discovered the first trick that you cannot set the
options.WindowBorder = WindowBorder.Hiddenbefore the Load handler runs. So, I capture the created window and set that in my Load method and the border is removed, that's great.But, if I set the
options.WindowState = WindowState.Fullscreenthen I get an exclusive fullscreen application. That is, when I task switch my program is minimzed, but I'd like to be able to switch and have applications on top.I tried
options.WindowState = WindowState.Maximizedbut that leaves the window with the taskbar on top.I've tried setting the
window.TopMost = true, to no effect.The behaviour I'm looking for is (apparently) technically possible as if I start it up with something like:
and then toggle the border off in the Load, I get the application filling the screen with the taskbar on top. I then can right-click the app in the taskbar, select More and toggle Fullscreen and now the application works like I'm hoping.
Has anyone successfully made a borderless fullscreen window on Linux?
Beta Was this translation helpful? Give feedback.
All reactions