apply screen limit policy to border configure requests

This commit is contained in:
Mike Blumenkrantz 2013-07-02 08:34:25 +01:00
parent ee8a628ff5
commit c8c21fcc0f
1 changed files with 9 additions and 1 deletions

View File

@ -5257,7 +5257,15 @@ _e_border_cb_window_configure_request(void *data __UNUSED__,
bd->saved.y = y - bd->zone->y;
}
else
e_border_move(bd, x, y);
{
if ((e_config->screen_limits != E_SCREEN_LIMITS_COMPLETELY) && bd->zone &&
(!E_INSIDE(x, y, 0, 0, bd->zone->w - 5, bd->zone->h - 5)) &&
(!E_INSIDE(x, y, 0 - bd->w + 5, 0 - bd->h + 5, bd->zone->w - 5, bd->zone->h - 5))
)
_e_border_move_lost_window_to_center(bd);
else
e_border_move(bd, x, y);
}
}
}
}