mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Unshade windows if Alt+Tab succeeds (not escaped)
This commit is contained in:
parent
8e90a1c946
commit
9c0a3b3537
1 changed files with 6 additions and 0 deletions
|
|
@ -93,8 +93,14 @@ end_cycling(struct server *server)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct view *cycle_view = server->osd_state.cycle_view;
|
struct view *cycle_view = server->osd_state.cycle_view;
|
||||||
|
/* Store the shaded state before osd_finish() clears the cycle_view */
|
||||||
|
bool was_shaded = cycle_view && cycle_view->shaded;
|
||||||
/* FIXME: osd_finish() transiently sets focus to the old surface */
|
/* FIXME: osd_finish() transiently sets focus to the old surface */
|
||||||
osd_finish(server);
|
osd_finish(server);
|
||||||
|
/* Unshade if we're actually selecting a window (not canceling) */
|
||||||
|
if (cycle_view && was_shaded) {
|
||||||
|
view_set_shade(cycle_view, false);
|
||||||
|
}
|
||||||
/* Note that server->osd_state.cycle_view is cleared at this point */
|
/* Note that server->osd_state.cycle_view is cleared at this point */
|
||||||
desktop_focus_view(cycle_view, /*raise*/ true);
|
desktop_focus_view(cycle_view, /*raise*/ true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue