Package: gdk

Function gdk-event-screen

Lambda List

gdk-event-screen (event)

Syntax

(gdk-event-screen event) => screen
(setf (gdk-event-screen event) screen)

Arguments

event -- a gdk-event instance
screen -- a gdk-screen object

Details

Accessor of the screen of an event.

The function gdk-event-screen returns the screen for the event. The function (setf gdk-event-screen) sets the screen of the event.

The event must have been allocated by GTK, for instance, by the function gdk-event-copy.

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.
 

See also

2020-8-25