Asynchrous sane window events
This commit is contained in:
parent
4fa39ba510
commit
89fed507b3
@ -507,6 +507,16 @@ wins_packet_t * get_window_events() {
|
||||
return out;
|
||||
}
|
||||
|
||||
wins_packet_t * get_window_events_async() {
|
||||
struct stat _stat;
|
||||
fstat(process_windows->event_pipe, &_stat);
|
||||
if (_stat.st_size >= sizeof(wins_packet_t)) {
|
||||
return get_window_events();
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Initial Connection */
|
||||
|
@ -188,6 +188,7 @@ void (*focus_changed_callback)(window_t *);
|
||||
window_t * wins_get_window (wid_t wid);
|
||||
void win_sane_events();
|
||||
wins_packet_t * get_window_events();
|
||||
wins_packet_t * get_window_events_async();
|
||||
|
||||
void resize_window_buffer_client (window_t * window, int16_t left, int16_t top, uint16_t width, uint16_t height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user