mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
ToggleKeybinds per window
This commit is contained in:
parent
b6dfffc782
commit
235a8ad9bc
12 changed files with 84 additions and 5 deletions
|
|
@ -121,7 +121,7 @@ struct seat {
|
|||
struct wlr_idle_inhibit_manager_v1 *wlr_idle_inhibit_manager;
|
||||
|
||||
/* In support for ToggleKeybinds */
|
||||
bool inhibit_keybinds;
|
||||
uint32_t nr_inhibited_keybind_views;
|
||||
|
||||
/* Used to hide the workspace OSD after switching workspaces */
|
||||
struct wl_event_source *workspace_osd_timer;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ void ssd_update_title(struct ssd *ssd);
|
|||
void ssd_update_geometry(struct ssd *ssd);
|
||||
void ssd_destroy(struct ssd *ssd);
|
||||
|
||||
void ssd_enable_keybind_inhibit_indicator(struct ssd *ssd, bool enable);
|
||||
|
||||
struct ssd_hover_state *ssd_hover_state_new(void);
|
||||
void ssd_update_button_hover(struct wlr_scene_node *node,
|
||||
struct ssd_hover_state *hover_state);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ struct theme {
|
|||
float window_active_border_color[4];
|
||||
float window_inactive_border_color[4];
|
||||
|
||||
float window_toggled_keybinds_color[4];
|
||||
|
||||
float window_active_title_bg_color[4];
|
||||
float window_inactive_title_bg_color[4];
|
||||
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ struct view {
|
|||
bool maximized;
|
||||
bool fullscreen;
|
||||
uint32_t tiled; /* private, enum view_edge in src/view.c */
|
||||
bool inhibits_keybinds;
|
||||
|
||||
/* Pointer to an output owned struct region, may be NULL */
|
||||
struct region *tiled_region;
|
||||
|
|
@ -146,6 +147,9 @@ struct xdg_toplevel_view {
|
|||
struct wl_listener new_popup;
|
||||
};
|
||||
|
||||
bool view_inhibits_keybinds(struct view *view);
|
||||
void view_toggle_keybinds(struct view *view);
|
||||
|
||||
void view_set_activated(struct view *view);
|
||||
void view_set_output(struct view *view, struct output *output);
|
||||
void view_close(struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue