Home

GdkDisplay

GdkDisplay is a GObject-based abstraction in the GDK library that represents a connection to a graphical display server for an application. It serves as the central access point for information and services provided by the windowing system, such as the current set of monitors, input devices, and the runtime environment used for rendering.

In multi-monitor setups, a GdkDisplay provides access to one or more GdkMonitor objects. Clients can query the

Input and focus across the display are coordinated via the display object and related abstractions such as

GdkDisplay is backend-agnostic; different backends implement the details for X11, Wayland, or other windowing systems. Applications

Lifecycle-wise, a GdkDisplay is created when an application connects to the display server and is freed when

See also: GdkMonitor, GdkSeat, GTK, Wayland, X11.

number
of
monitors,
their
geometry,
scale
factors,
and
work
areas,
and
determine
which
monitor
contains
a
given
point
or
window.
The
concept
of
a
primary
monitor
is
exposed
by
the
display
as
well.
seats.
A
GdkSeat
represents
the
collection
of
input
devices
(keyboard,
pointer,
touch)
associated
with
the
display,
and
is
used
to
route
events
to
the
appropriate
windows.
typically
obtain
the
default
display
with
a
library
helper
function
and
then
query
or
listen
for
changes
to
monitor
configuration
(such
as
monitor-added
or
monitor-removed
events).
the
connection
is
closed.
It
is
a
foundational
component
for
window
creation,
event
handling,
and
rendering
in
GTK
applications
that
rely
on
GDK.