layer-shell: validate exclusiveEdge and don't set it as top by default (#7006)

* validate exclusiveEdge and don't set it as top by default

* make sure exclusive edge anchor is within bounds
This commit is contained in:
Ikalco
2024-07-23 13:03:15 -05:00
committed by GitHub
parent 077494ee85
commit a5f58a3126
2 changed files with 11 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class CLayerShellResource : public ISurfaceRole {
Vector2D desiredSize;
zwlrLayerSurfaceV1KeyboardInteractivity interactivity = ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE;
zwlrLayerShellV1Layer layer = ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM;
zwlrLayerSurfaceV1Anchor exclusiveEdge = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP;
zwlrLayerSurfaceV1Anchor exclusiveEdge = (zwlrLayerSurfaceV1Anchor)0;
uint32_t committed = 0;
struct {