| |
| Posted by aberba in reply to Ron Tarrant | PermalinkReply |
|
aberba
Posted in reply to Ron Tarrant
| On Sunday, 4 August 2024 at 07:45:50 UTC, Ron Tarrant wrote:
> On Tuesday, 9 April 2024 at 09:15:18 UTC, Iliana Marquardt wrote:
> Is anyone able to use gtk4 in D?
Just FYI, gtk4 (compared to gtk3) dropped all responsibility for window placement (an application window opens in the same screen position where it was last closed). One of the devs told me it's because this type of thing should be handled by the OS's window manager (which, truthfully, it should). However, there is no window manager in Linux that will properly handle window position on a multi-monitor set-up.
There were other things that got dropped, but I don't recall what they were ATM. This one thing was enough for me to steer away from it.
Isn't support by window managers only a matter of time?
Like it was mentioned on that thread (https://discourse.gnome.org/t/how-to-center-gtkwindows-in-gtk4/3112/9) windowing systems have gotten more complicated and also multiple monitors don't make it easier either. So it's not an easy thing to do in such a way that it works cross platform across all envs supported by gtk4. The only possible chance of reliable implementation is using platform specific windowing managers that support it. Like you said, none supports it well... probably because it's a hard problem?
> And if you're interested in an OOP approach to GtkD (3, naturally) you might check out https://gtkdcoding.com. I put it all in the public domain, so feel free to use anything you find there.
|