get_primary_monitor


Description:

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 surfaces typically allow the window manager to place the surfaces, specialized desktop applications such as panels should place themselves on the primary monitor.

If no monitor is the designated primary monitor, any monitor (usually the first) may be returned.

Parameters:

this

a `GdkDisplay`

Returns:

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