From 6f5b697c3c9d0fbbba0f7aaf158c2da2ea48dcb2 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Sat, 26 Sep 2020 07:02:34 +0200 Subject: `--position` instead of `--anchor` --- src/surface.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/surface.c') diff --git a/src/surface.c b/src/surface.c index da3666d..18e6131 100644 --- a/src/surface.c +++ b/src/surface.c @@ -66,27 +66,11 @@ static int32_t get_exclusive_zone (struct Wlclock_surface *surface) if ( clock->exclusive_zone == 1 ) switch (clock->anchor) { case ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM - | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT - | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT: case ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP - | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT - | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT - | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT: return surface->dimensions.h; case ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT - | ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP - | ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM: case ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT - | ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP - | ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM: - case ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP - | ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM: return surface->dimensions.w; default: -- cgit v1.2.3