Method

GdkX11X11Displayget_primary_monitor

deprecated: 4.18 

Declaration [src]

GdkMonitor*
gdk_x11_display_get_primary_monitor (
  GdkDisplay* display
)

Description [src]

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.

Deprecated since: 4.18

Please do not use it in newly written code.

Return value

Type: GdkMonitor

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

The returned data is owned by the instance.