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 gdk:event-screen function returns the screen for the event. The (setf gdk:event-screen) function sets the screen of the event.

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

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

2023-2-26