mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 18:21:43 -05:00

Example: if one chromium window is opened and a link is opened in newsbeuter then chromium will steal the input focus (without explicitly requesting focus via the proper EWMH message).
25 lines
764 B
C
25 lines
764 B
C
#ifndef _EVENTS_H
|
|
#define _EVENTS_H
|
|
|
|
#include <xcb/xcb.h>
|
|
#include <xcb/xcb_event.h>
|
|
|
|
uint8_t randr_base;
|
|
uint16_t last_motion_x, last_motion_y;
|
|
xcb_timestamp_t last_motion_time;
|
|
|
|
void handle_event(xcb_generic_event_t *);
|
|
void map_request(xcb_generic_event_t *);
|
|
void destroy_notify(xcb_generic_event_t *);
|
|
void unmap_notify(xcb_generic_event_t *);
|
|
void configure_request(xcb_generic_event_t *);
|
|
void client_message(xcb_generic_event_t *);
|
|
void property_notify(xcb_generic_event_t *);
|
|
void focus_in(xcb_generic_event_t *);
|
|
void enter_notify(xcb_generic_event_t *);
|
|
void motion_notify(xcb_generic_event_t *);
|
|
void handle_state(monitor_t *, desktop_t *, node_t *, xcb_atom_t, unsigned int);
|
|
void grab_pointer(pointer_action_t);
|
|
void track_pointer(int, int);
|
|
|
|
#endif
|