xdg-shell: Rename focused_set / focused_unset to activated / deactivated
To try and make the distinction between this event and keyboard focus.
This commit is contained in:
committed by
Kristian Høgsberg
parent
a0d8a30931
commit
b223a72147
@@ -1934,7 +1934,7 @@ shell_surface_lose_keyboard_focus(struct shell_surface *shsurf)
|
||||
{
|
||||
if (--shsurf->focus_count == 0)
|
||||
if (shell_surface_is_xdg_surface(shsurf))
|
||||
xdg_surface_send_focused_unset(shsurf->resource);
|
||||
xdg_surface_send_deactivated(shsurf->resource);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1942,7 +1942,7 @@ shell_surface_gain_keyboard_focus(struct shell_surface *shsurf)
|
||||
{
|
||||
if (shsurf->focus_count++ == 0)
|
||||
if (shell_surface_is_xdg_surface(shsurf))
|
||||
xdg_surface_send_focused_set(shsurf->resource);
|
||||
xdg_surface_send_activated(shsurf->resource);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user