get_primary_monitor


Description:

[ Version ( since = "3.22" ) ]
public unowned Monitor? get_primary_monitor ()

Gets the primary monitor for the display.

The primary monitor is considered the monitor where the “main desktop” lives. While normal application windows typically allow the window manager to place the windows, specialized desktop applications such as panels should place themselves on the primary monitor.

Parameters:

this

a Display

Returns:

the primary monitor, or null if no primary monitor is configured by the user




2022 vala-language.org