ssd: dynamically adjust resize extents based on usable_area

Fixes #265
This commit is contained in:
Consolatis 2022-03-10 06:50:42 +01:00 committed by Johan Malm
parent e086f6f5e0
commit 3171aba0e2
5 changed files with 162 additions and 61 deletions

View file

@ -74,6 +74,8 @@ struct ssd {
* don't update things we don't have to.
*/
struct {
int x;
int y;
int width;
int height;
struct ssd_state_title {
@ -110,6 +112,9 @@ struct ssd_part {
/* This part represented in scene graph */
struct wlr_scene_node *node;
/* Targeted geometry. May be NULL */
struct wlr_box *geometry;
struct wl_list link;
};