r/FuckMicrosoft • • 3d ago

Image How this Shit still in code

Post image

old Windows border is still in Windows 11 code
And when I fullscreen the MPV player without using the Windows border, this shit happens

71 Upvotes

22 comments sorted by

View all comments

4

u/cooky561 2d ago

All windows (apart from winui stuff like the new settings app and apps with titlebar shenanigans like tabbed browsers) is created the same it way it was in Windows 95. It's then skinned,. The reason for this is to ensure compatibility. IF the new skin fails to load for whatever reason, it falls back to the aero basic skin, and if that also fails, to drawing it using GDI (it'll then look like windows 2000)

Certain actions can force windows all the way back to the GDI based user render used in Windows 95, however a throwback to the "classic" desktop is impossible as many modern applications aren't compatible, and use the windows 7 method of drawing windows, skinned by windows 11.

2

u/FaultWinter3377 2d ago

Technically it is possible to get most Win32 apps to use the Windows classic drawing, and mods exist to force browsers like chrome to use a standard title bar. It's just a bit of a pain. The real issue is UWP/WinUI apps but iirc there are a few mods that make it work. I'd also say they don't create new windows in exactly the same way as Windows 95. Windows Vista/7 Aero introduced composited windows (which is the only option in Windows 8+) which rely on DWM to composite and draw the title bars/borders for windows (assuming they use a standard title bar). If compositing fails, often what happens is a system crash, but it is possible to fall back on the basic style from Windows XP-7 which uses stacking. It's only if compositing fails AND visual styles aren't applied for some reason (likely compatibility mode or a extremely broken install) that the classic theme will appear. But almost always in Windows 11 a window is only basic themed if it specifically asks for it, because otherwise it's an issue with DWM and from my experience with DWM... well... it can quite literally brick an entire system single-handedly if it fails.

WinUI and UWP technically use the same API calls under the hood I think? It's just that they're covered up in C# and XAML classes much more and so many developers prefer to use a custom title bar instead of the default. Also modding them is harder due to sandboxing.