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:
Jasper St. Pierre
2014-02-08 18:11:53 -05:00
committed by Kristian Høgsberg
parent a0d8a30931
commit b223a72147
5 changed files with 30 additions and 23 deletions
+2 -2
View File
@@ -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