Gdkmm 4 Display::get_primary_monitor()

Hi, migrating my c++ app to Gtkmm 4 I can’t find Display::get_primary_monitor(), why is it gone? what’s replacing it?

The concept of “primary” monitor is a very specific X11-ism—it relies on the XRandR extension to define what “primary” is. Incidentally, XRandR will sort the list of outputs to always return the primary monitor first, so it’s really not useful.

There’s no replacement for it, as every other windowing system supported by GTK simply returned the first available output.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.