mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-08 22:20:23 +01:00
desktop-shell: Simplify condition for focus change
We must have (from || to), because if (!from && !to), we would've caught the if (from == to) early-return case. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
77b9dbb730
commit
db97820919
1 changed files with 1 additions and 1 deletions
|
|
@ -864,7 +864,7 @@ animate_focus_change(struct desktop_shell *shell, struct workspace *ws,
|
|||
return;
|
||||
|
||||
output = weston_shell_utils_get_default_output(shell->compositor);
|
||||
if (ws->fsurf_front == NULL && (from || to)) {
|
||||
if (ws->fsurf_front == NULL) {
|
||||
ws->fsurf_front = create_focus_surface(shell->compositor, output);
|
||||
if (ws->fsurf_front == NULL)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue