about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-01-21 17:41:20 -0500
committerZach DeCook <zachdecook@librem.one>2022-01-21 17:41:20 -0500
commitd169f66b57b8567ec06ada3b79d4163d48603d02 (patch)
tree8b3cb16a5047836912d3d4bfac76c18fb668c8f5 /main.c
parent6e16e55851b472513b3869e8af757c7e4fbc131f (diff)
downloadsuggpicker-d169f66b57b8567ec06ada3b79d4163d48603d02.tar.gz
layout: Remove layout file
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;