Change keyboard focus setting on visible/invisible events 77/22177/1 halibut 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6
authorJacobo Aragunde Pérez <jaragunde@igalia.com>
Thu, 1 Aug 2019 07:08:22 +0000 (09:08 +0200)
committerJacobo Aragunde Pérez <jaragunde@igalia.com>
Mon, 19 Aug 2019 20:01:23 +0000 (20:01 +0000)
commitf7ac2f42c22b8324cc30b50dc255f85df406765a
treeabad4d316b553b0f56b18305a3717475f9675009
parentda4fc1efac827ac209c4d7c83968e0433c681298
Change keyboard focus setting on visible/invisible events

Keyboard focus was set and unset on activation events. This had the
side effect of keeping the keyboard attached to the window even if it
was invisible. Using the visibility events to perform this task looks
like a more natural way to deal with it.

Besides, activate/deactivate callbacks are not being called in
halibut or master, effectively stopping keyboard focus from working.

Bug-AGL: SPEC-2657

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Change-Id: I65cc54c89db56bda1da4ea562151e3a30e10d068
(cherry picked from commit e3ec600e13b239a4bb53c6b4f40228cb2e89453a)
src/runxdg.cpp