mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Enforce resize bounds in rootston
This commit is contained in:
parent
b97160238f
commit
fb0c9a356e
3 changed files with 40 additions and 0 deletions
|
|
@ -160,6 +160,13 @@ void cursor_update_position(struct roots_input *input, uint32_t time) {
|
|||
width += dx;
|
||||
}
|
||||
|
||||
if (width < 0) {
|
||||
width = 0;
|
||||
}
|
||||
if (height < 0) {
|
||||
height = 0;
|
||||
}
|
||||
|
||||
// TODO we might need one configure event for this
|
||||
if (active_x != input->active_view->x ||
|
||||
active_y != input->active_view->y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue