summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.c b/main.c
index ca922ff..a8f63da 100644
--- a/main.c
+++ b/main.c
@@ -310,7 +310,7 @@ handle_global_remove(void *data, struct wl_registry *registry, uint32_t name) {}
 void
 layer_surface_configure(void *data, struct zwlr_layer_surface_v1 *surface,
                         uint32_t serial, uint32_t w, uint32_t h) {
-	keyboard.w = w + KBD_PIXEL_OVERSCAN_WIDTH;
+	keyboard.w = w;
 	keyboard.h = h;
 	kbd_resize(&keyboard);
 
@@ -399,12 +399,6 @@ main(int argc, char **argv) {
 	height = normal_height = KBD_PIXEL_HEIGHT;
 	landscape_height = KBD_PIXEL_LANDSCAPE_HEIGHT;
 
-	char *tmp;
-	if ((tmp = getenv("WVKBD_HEIGHT")))
-		normal_height = atoi(tmp);
-	if ((tmp = getenv("WVKBD_LANDSCAPE_HEIGHT")))
-		landscape_height = atoi(tmp);
-
 	/* keyboard settings */
 	keyboard.scheme = scheme;