view: Do not call ssd_set_active() for inactive views

Partially fixes #494.
This commit is contained in:
John Lindgren 2022-08-26 13:49:39 -04:00
parent 36b2a93a69
commit 807f3b1381

View file

@ -98,7 +98,7 @@ view_get_edge_snap_box(struct view *view, struct output *output,
void
view_set_activated(struct view *view, bool activated)
{
if (view->ssd.enabled) {
if (activated && view->ssd.enabled) {
ssd_set_active(view);
}
if (view->impl->set_activated) {