From ce7b398f7b14cc6ddd40bca649b7746783342216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 15 Jul 2019 12:48:39 +0200 Subject: [PATCH] LayerSurface: Make exclusive zone identical to height Othewise we hide content beneath the keyboard. Closes: #53 --- src/server-context-service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server-context-service.c b/src/server-context-service.c index 9336b0bf..967aca7c 100644 --- a/src/server-context-service.c +++ b/src/server-context-service.c @@ -275,6 +275,7 @@ set_geometry (ServerContextService *context) } } +#define KEYBOARD_HEIGHT 210 static void make_window (ServerContextService *context) { @@ -285,13 +286,13 @@ make_window (ServerContextService *context) PHOSH_TYPE_LAYER_SURFACE, "layer-shell", squeek_wayland->layer_shell, "wl-output", g_ptr_array_index(squeek_wayland->outputs, 0), // TODO: select output as needed, - "height", 210, + "height", KEYBOARD_HEIGHT, "anchor", ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT, "layer", ZWLR_LAYER_SHELL_V1_LAYER_TOP, "kbd-interactivity", FALSE, - "exclusive-zone", 200, + "exclusive-zone", KEYBOARD_HEIGHT, //"namespace", "phosh home", NULL );