Package: gdk

Function gdk-screen-primary-monitor

Lambda List

gdk-screen-primary-monitor (screen)

Arguments

screen -- a gdk-screen object

Return Value

An integer with the index for the primary monitor, or 0 if none is configured.

Details

Gets the primary monitor for the screen. 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.

If no primary monitor is configured by the user, the return value will be 0, defaulting to the first monitor.

Warning

The gdk-screen-primary-monitor function has been deprecated since version 3.22 and should not be used in newly written code. Use the gdk-display-primary-monitor function instead.
 

See also

2021-12-13