Re: Pixel size of primary monitor? (Daniel Boles)

2019-03-02 Thread Peter Weber via gtkmm-list
On Thu, 2019-02-14 at 12:00 +, gtkmm-list-requ...@gnome.org wrote: > Message: 2 > Date: Wed, 13 Feb 2019 15:08:40 + > From: Daniel Boles > To: gtkmm-list > Subject: Re: Pixel size of primary monitor? > Message-ID: > > See https://gitlab.gnome.org/GNOME/gtk

Re: Pixel size of primary monitor?

2019-02-13 Thread Daniel Boles via gtkmm-list
On Wed, 13 Feb 2019 at 14:55, Peter Weber via gtkmm-list < gtkmm-list@gnome.org> wrote: > Glib::RefPtr primary_monitor = > window->get_screen()->get_display()->get_primary_monitor(); > if (primary_monitor) { > Gdk::Rectangle monitor_size; > primary_monitor->get_geometry(monitor_size); >

Pixel size of primary monitor?

2019-02-13 Thread Peter Weber via gtkmm-list
Hello! I want to know the pixel dimensions of the primary monitor. The reason for this is that I want adapt the initial size of the application window relative to the monitor size. I don't know if their is another pleasant way, but I consider getting the pixel dimensions is generally a useful