get_primary_monitor
Description:
[ Version ( deprecated = true , deprecated_since = "3.22" , since = "2.20" ) ]
public int get_primary_monitor ()
public int get_primary_monitor ()
Warning: get_primary_monitor is deprecated since 3.22.
Gets the primary monitor for this.
Note:
Use get_primary_monitor instead
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.
Parameters:
this |
a Screen. |
Returns:
An integer index for the primary monitor, or 0 if none is configured. |