Package: gdk

Function gdk-screen-monitor-workarea

Lambda List

gdk-screen-monitor-workarea (screen num)

Arguments

screen -- a gdk-screen object
num -- an integer with the monitor number

Return Value

A gdk-rectangle instance filled with the monitor workarea.

Details

Retrieves the rectangle representing the size and position of the "work area" on a monitor within the entire screen area.

The work area should be considered when positioning menus and similar popups, to avoid placing them below panels, docks or other desktop components.

Monitor numbers start at 0. To obtain the number of monitors of the screen, use the gdk-screen-n-monitors function.

Warning

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

See also

2021-12-13