3 ms·
This is a part of Wayland fanaticism: https://discourse.gnome.org/t/how-to-center-gtkwindows-in-gtk4/3112/9 https://discourse.gnome.org/t/how-to-center-gtkwind
by nsajko 4y ago
This is a part of Wayland fanaticism:
https://discourse.gnome.org/t/how-to-center-gtkwindows-in-gtk4/3112/9 https://discourse.gnome.org/t/how-to-center-gtkwindows-in-gt...
As I’ve said above, not all windowing systems have a concept of
global coordinates or allow direct positioning of the windowing from
an application. Wayland, for instance, does not.
The purpose of the Wayland project was clearly to impose a set of weird limitations like this one on everyone. The best explanation I can think of is that it's all part of some cult at Red Hat.
- smoldesu 4y agoAre they wrong? SwiftUI doesn't have a concept of window positioning coordinates, but that doesn't mean that MacOS isn't a desktop OS. They just implemented their windowing stack differently, and honestly I think the Quartz method is a lot nicer. There's a lot to complain about with Wayland, but this is one of the few changes that seems rooted in logic rather than laziness.
- c-smile 4y agoSwiftUI is not a desktop UI by its concept. It is very close to Web Fronted UI - document UIs running inside a sandbox.
- smoldesu 4y agoAlright, let's go up a layer of abstraction then. Where does the Quartz system expose windowing coordinates the the developer?
- c-smile 4y agoRight here: https://developer.apple.com/documentation/appkit/nswindow/1419697-frame?language=objc https://developer.apple.com/documentation/appkit/nswindow/14...