Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
wl_seat.c File Reference
#include <linux/input-event-codes.h>
#include "protocols/idle.h"
#include "../dunst.h"
#include "../input.h"
#include "../log.h"
#include "../settings.h"
#include "wl_seat.h"
#include "wl_ctx.h"
+ Include dependency graph for wl_seat.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   200112L
 

Functions

static void touch_handle_motion (void *data, struct wl_touch *wl_touch, uint32_t time, int32_t id, wl_fixed_t surface_x, wl_fixed_t surface_y)
 
static void touch_handle_down (void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, struct wl_surface *sfc, int32_t id, wl_fixed_t surface_x, wl_fixed_t surface_y)
 
static void touch_handle_up (void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id)
 
static void touch_handle_frame (void *data, struct wl_touch *wl_touch)
 
static void touch_handle_cancel (void *data, struct wl_touch *wl_touch)
 
static void pointer_handle_enter (void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y)
 
static void pointer_handle_motion (void *data, struct wl_pointer *wl_pointer, uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y)
 
static void pointer_handle_button (void *data, struct wl_pointer *wl_pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t button_state)
 
static void pointer_handle_leave (void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface)
 
static void pointer_handle_axis (void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
 
static void destroy_seat_pointer (struct dunst_seat *seat)
 
static void destroy_seat_touch (struct dunst_seat *seat)
 
void destroy_seat (struct dunst_seat *seat)
 
static void seat_handle_capabilities (void *data, struct wl_seat *wl_seat, uint32_t capabilities)
 
static void seat_handle_name (void *data, struct wl_seat *wl_seat, const char *name)
 
static void idle_start (void *data, struct org_kde_kwin_idle_timeout *org_kde_kwin_idle_timeout)
 
static void idle_stop (void *data, struct org_kde_kwin_idle_timeout *org_kde_kwin_idle_timeout)
 
void add_seat_to_idle_handler (struct dunst_seat *seat)
 
void create_seat (struct wl_registry *registry, uint32_t global_name, uint32_t version)
 

Variables

static const struct wl_touch_listener touch_listener
 
static const struct wl_pointer_listener pointer_listener
 
static const struct wl_seat_listener seat_listener
 
static const struct org_kde_kwin_idle_timeout_listener idle_timeout_listener
 

Detailed Description

License
BSD-3-Clause

Definition in file wl_seat.c.

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200112L

Definition at line 8 of file wl_seat.c.

Function Documentation

◆ add_seat_to_idle_handler()

void add_seat_to_idle_handler ( struct dunst_seat * seat)

Definition at line 268 of file wl_seat.c.

◆ create_seat()

void create_seat ( struct wl_registry * registry,
uint32_t global_name,
uint32_t version )

Definition at line 297 of file wl_seat.c.

◆ destroy_seat()

void destroy_seat ( struct dunst_seat * seat)

Definition at line 148 of file wl_seat.c.

◆ destroy_seat_pointer()

static void destroy_seat_pointer ( struct dunst_seat * seat)
static

Definition at line 138 of file wl_seat.c.

◆ destroy_seat_touch()

static void destroy_seat_touch ( struct dunst_seat * seat)
static

Definition at line 143 of file wl_seat.c.

◆ idle_start()

static void idle_start ( void * data,
struct org_kde_kwin_idle_timeout * org_kde_kwin_idle_timeout )
static

Definition at line 229 of file wl_seat.c.

◆ idle_stop()

static void idle_stop ( void * data,
struct org_kde_kwin_idle_timeout * org_kde_kwin_idle_timeout )
static

Definition at line 235 of file wl_seat.c.

◆ pointer_handle_axis()

static void pointer_handle_axis ( void * data,
struct wl_pointer * wl_pointer,
uint32_t time,
uint32_t axis,
wl_fixed_t value )
static

Definition at line 126 of file wl_seat.c.

◆ pointer_handle_button()

static void pointer_handle_button ( void * data,
struct wl_pointer * wl_pointer,
uint32_t serial,
uint32_t time,
uint32_t button,
uint32_t button_state )
static

Definition at line 110 of file wl_seat.c.

◆ pointer_handle_enter()

static void pointer_handle_enter ( void * data,
struct wl_pointer * wl_pointer,
uint32_t serial,
struct wl_surface * surface,
wl_fixed_t x,
wl_fixed_t y )
static

Definition at line 79 of file wl_seat.c.

◆ pointer_handle_leave()

static void pointer_handle_leave ( void * data,
struct wl_pointer * wl_pointer,
uint32_t serial,
struct wl_surface * surface )
static

Definition at line 118 of file wl_seat.c.

◆ pointer_handle_motion()

static void pointer_handle_motion ( void * data,
struct wl_pointer * wl_pointer,
uint32_t time,
wl_fixed_t surface_x,
wl_fixed_t surface_y )
static

Definition at line 102 of file wl_seat.c.

◆ seat_handle_capabilities()

static void seat_handle_capabilities ( void * data,
struct wl_seat * wl_seat,
uint32_t capabilities )
static

Definition at line 191 of file wl_seat.c.

◆ seat_handle_name()

static void seat_handle_name ( void * data,
struct wl_seat * wl_seat,
const char * name )
static

Definition at line 216 of file wl_seat.c.

◆ touch_handle_cancel()

static void touch_handle_cancel ( void * data,
struct wl_touch * wl_touch )
static

Definition at line 68 of file wl_seat.c.

◆ touch_handle_down()

static void touch_handle_down ( void * data,
struct wl_touch * wl_touch,
uint32_t serial,
uint32_t time,
struct wl_surface * sfc,
int32_t id,
wl_fixed_t surface_x,
wl_fixed_t surface_y )
static

Definition at line 41 of file wl_seat.c.

◆ touch_handle_frame()

static void touch_handle_frame ( void * data,
struct wl_touch * wl_touch )
static

Definition at line 65 of file wl_seat.c.

◆ touch_handle_motion()

static void touch_handle_motion ( void * data,
struct wl_touch * wl_touch,
uint32_t time,
int32_t id,
wl_fixed_t surface_x,
wl_fixed_t surface_y )
static

Definition at line 29 of file wl_seat.c.

◆ touch_handle_up()

static void touch_handle_up ( void * data,
struct wl_touch * wl_touch,
uint32_t serial,
uint32_t time,
int32_t id )
static

Definition at line 53 of file wl_seat.c.

Variable Documentation

◆ idle_timeout_listener

const struct org_kde_kwin_idle_timeout_listener idle_timeout_listener
static
Initial value:
= {
.idle = idle_start,
.resumed = idle_stop,
}

Definition at line 242 of file wl_seat.c.

◆ pointer_listener

const struct wl_pointer_listener pointer_listener
static
Initial value:
= {
.enter = pointer_handle_enter,
.leave = pointer_handle_leave,
.motion = pointer_handle_motion,
.button = pointer_handle_button,
.axis = pointer_handle_axis,
}

Definition at line 130 of file wl_seat.c.

◆ seat_listener

const struct wl_seat_listener seat_listener
static
Initial value:
= {
.capabilities = seat_handle_capabilities,
.name = seat_handle_name,
}

Definition at line 223 of file wl_seat.c.

◆ touch_listener

const struct wl_touch_listener touch_listener
static
Initial value:
= {
.down = touch_handle_down,
.up = touch_handle_up,
.motion = touch_handle_motion,
.frame = touch_handle_frame,
.cancel = touch_handle_cancel,
}

Definition at line 71 of file wl_seat.c.