mirror of
https://github.com/labwc/labwc.git
synced 2026-02-13 04:27:49 -05:00
Add support for ext_idle_notify_v1..
..and combine both idle variants into a standalone manager
This commit is contained in:
parent
e06a8cfc7a
commit
40aba9e542
9 changed files with 134 additions and 51 deletions
11
include/idle.h
Normal file
11
include/idle.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_IDLE_H
|
||||
#define LABWC_IDLE_H
|
||||
|
||||
struct wl_display;
|
||||
struct wlr_seat;
|
||||
|
||||
void idle_manager_create(struct wl_display *display, struct wlr_seat *wlr_seat);
|
||||
void idle_manager_notify_activity(struct wlr_seat *seat);
|
||||
|
||||
#endif /* LABWC_IDLE_H */
|
||||
|
|
@ -17,8 +17,6 @@
|
|||
#include <wlr/types/wlr_cursor.h>
|
||||
#include <wlr/types/wlr_data_device.h>
|
||||
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
|
||||
#include <wlr/types/wlr_idle.h>
|
||||
#include <wlr/types/wlr_idle_inhibit_v1.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wlr/types/wlr_keyboard_group.h>
|
||||
|
|
@ -117,8 +115,6 @@ struct seat {
|
|||
} smooth_scroll_offset;
|
||||
|
||||
struct wlr_pointer_constraint_v1 *current_constraint;
|
||||
struct wlr_idle *wlr_idle;
|
||||
struct wlr_idle_inhibit_manager_v1 *wlr_idle_inhibit_manager;
|
||||
|
||||
/* In support for ToggleKeybinds */
|
||||
uint32_t nr_inhibited_keybind_views;
|
||||
|
|
@ -194,7 +190,6 @@ struct seat {
|
|||
struct wl_listener touch_frame;
|
||||
|
||||
struct wl_listener constraint_commit;
|
||||
struct wl_listener idle_inhibitor_create;
|
||||
struct wl_listener pressed_surface_destroy;
|
||||
|
||||
struct wlr_virtual_pointer_manager_v1 *virtual_pointer;
|
||||
|
|
@ -352,12 +347,6 @@ struct constraint {
|
|||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
struct idle_inhibitor {
|
||||
struct seat *seat;
|
||||
struct wlr_idle_inhibitor_v1 *wlr_inhibitor;
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
void xdg_popup_create(struct view *view, struct wlr_xdg_popup *wlr_popup);
|
||||
|
||||
void xdg_activation_handle_request(struct wl_listener *listener, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue