mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: cancel interactive resize when shading
This commit is contained in:
parent
a8952913bc
commit
6c87254146
1 changed files with 5 additions and 0 deletions
|
|
@ -2126,6 +2126,11 @@ view_set_shade(struct view *view, bool shaded)
|
|||
return;
|
||||
}
|
||||
|
||||
/* If this window is being resized, cancel the resize when shading */
|
||||
if (shaded && view->server->input_mode == LAB_INPUT_STATE_RESIZE) {
|
||||
interactive_cancel(view);
|
||||
}
|
||||
|
||||
view->shaded = shaded;
|
||||
ssd_enable_shade(view->ssd, view->shaded);
|
||||
wlr_scene_node_set_enabled(view->scene_node, !view->shaded);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue