The
gdk:display object purpose is two fold:
- To manage and provide information about input devices (pointers and keyboards).
- To manage and provide information about the available gdk:screen objects.
The
gdk:display object is the GDK representation of an X Display,
which can be described as a workstation consisting of a keyboard, a pointing
device (such as a mouse) and one or more screens. It is used to open and keep track of various
gdk:screen objects currently instantiated by the
application. It is also used to access the keyboard(s) and mouse pointer(s)
of the display.
Most of the input device handling has been factored out into the separate
gdk:device-manager object. Every display has a device manager, which you can obtain using the
gdk:display-device-manager function.
Signal Details
The "closed" signal
lambda (display is-error) :run-last
- display
- The gdk:display object on which the signal is emitted.
- is-error
- The boolean that is true if display was closed due to an error.
The signal is emitted when the connection to the windowing system for
display is closed.
The "monitor-added" signal
lambda (display monitor) :run-last
- display
- The gdk:display object on which the signal is emitted.
- monitor
- The gdk:monitor object that was just added.
The signal is emitted whenever a monitor is added. Since 3.22
The "monitor-removed" signal
lambda (display monitor) :run-last
- display
- The gdk:display object on which the signal is emitted.
- monitor
- The gdk:monitor object that was just removed.
The signal is emitted whenever a monitor is removed. Since 3.22
The "opened" signal
lambda (display) :run-last
display is opened.
- display
- The gdk:display object on which the signal is emitted.
The signal is emitted when the connection to the windowing system for
The "seat-added" signal
lambda (display seat) :run-last
The signal is emitted whenever a new seat is made known to the windowing
system. Since 3.20
- display
- The gdk:display object on which the signal is emitted.
- seat
- The gdk:seat object that was just added.
The "seat-removed" signal
lambda (display seat) :run-last
- display
- The gdk:display object on which the signal is emitted.
- seat
- The gdk:seat object that was just removed.
The signal is emitted whenever a seat is removed by the windowing system.
Since 3.20