refactor: cleanup + improve focus
This commit is contained in:
4
seat.c
4
seat.c
@ -239,7 +239,6 @@ void diyac_init_seat(struct diyac_server *server)
|
||||
|
||||
static void seat_focus(struct diyac_seat *seat, struct wlr_surface *surface, bool is_lock_surface)
|
||||
{
|
||||
wlr_log(WLR_INFO, "seat_focus");
|
||||
/*
|
||||
* Respect session lock. This check is critical, DO NOT REMOVE.
|
||||
* It should also come before the !surface condition, or the
|
||||
@ -281,7 +280,6 @@ static void seat_focus(struct diyac_seat *seat, struct wlr_surface *surface, boo
|
||||
|
||||
void diyac_seat_focus_surface(struct diyac_seat *seat, struct wlr_surface *surface)
|
||||
{
|
||||
wlr_log(WLR_INFO, "diyac_seat_focus_surface");
|
||||
/* Respect layer-shell exclusive keyboard-interactivity. */
|
||||
if (seat->focused_layer && seat->focused_layer->current.keyboard_interactive == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE)
|
||||
{
|
||||
@ -291,7 +289,7 @@ void diyac_seat_focus_surface(struct diyac_seat *seat, struct wlr_surface *surfa
|
||||
}
|
||||
|
||||
void diyac_seat_focus_layer(struct diyac_seat *seat, struct wlr_layer_surface_v1 *layer)
|
||||
{ wlr_log(WLR_INFO, "diyac_seat_focus_layer");
|
||||
{
|
||||
if (!layer)
|
||||
{
|
||||
seat->focused_layer = NULL;
|
||||
|
Reference in New Issue
Block a user