Logo Search packages:      
Sourcecode: wayland-demos version File versions  Download package

static void keyboard_focus_handler ( struct window window,
struct input device,
void *  data 
) [static]

CALLBACK function, Wayland informs about keyboard focus change.

devicedevice that caused the focus change
datauser data associated to the window

Definition at line 175 of file eventdemo.c.

References log_focus.

Referenced by eventdemo_create().

      int32_t x, y;
      struct eventdemo *e = data;

      if(log_focus) {
            if(device) {
                  input_get_position(device, &x, &y);
                  printf("focus x: %d, y: %d\n", x, y);
            } else {
                  printf("focus lost\n");


Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index