Display.getPrimaryMonitor

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.

class Display
getPrimaryMonitor
()

Return Value

Type: MonitorG

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

Meta

Since

3.22