Merge pull request #807 from swaywm/input-inhibit

Input inhibit
This commit is contained in:
Drew DeVault 2018-04-03 15:58:47 -04:00 committed by GitHub
commit 2ecce27dd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 533 additions and 15 deletions

View file

@ -46,6 +46,4 @@ struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend);
*/
struct wlr_renderer *wlr_backend_get_renderer(struct wlr_backend *backend);
uint32_t usec_to_msec(uint64_t usec);
#endif

View file

@ -0,0 +1,25 @@
#ifndef WLR_TYPES_INPUT_INHIBITOR_H
#define WLR_TYPES_INPUT_INHIBITOR_H
#include <wayland-server.h>
struct wlr_input_inhibit_manager {
struct wl_global *wl_global;
struct wl_client *active_client;
struct wl_resource *active_inhibitor;
struct wl_listener display_destroy;
struct {
struct wl_signal activate; // struct wlr_input_inhibit_manager *
struct wl_signal deactivate; // struct wlr_input_inhibit_manager *
} events;
void *data;
};
struct wlr_input_inhibit_manager *wlr_input_inhibit_manager_create(
struct wl_display *display);
void wlr_input_inhibit_manager_destroy(
struct wlr_input_inhibit_manager *manager);
#endif

View file

@ -530,6 +530,7 @@ bool wlr_seat_touch_has_grab(struct wlr_seat *seat);
*/
bool wlr_seat_validate_grab_serial(struct wlr_seat *seat, uint32_t serial);
struct wlr_seat_client *wlr_seat_client_from_resource(struct wl_resource *resource);
struct wlr_seat_client *wlr_seat_client_from_resource(
struct wl_resource *resource);
#endif