Method

GdkEventget_screen

since: 2.2

Declaration [src]

GdkScreen*
gdk_event_get_screen (
  const GdkEvent* event
)

Description [src]

Returns the screen for the event. The screen is typically the screen for event->any.window, but for events such as mouse events, it is the screen where the pointer was when the event occurs - that is, the screen which has the root window to which event->motion.x_root and event->motion.y_root are relative.

Available since: 2.2

Return value

Type: GdkScreen

The screen for the event.

The returned data is owned by the instance.