summaryrefslogtreecommitdiff
path: root/src/tofi.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-07 13:47:35 +0100
committerPhil Jones <philj56@gmail.com>2022-06-07 15:31:49 +0100
commit51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch)
treef2b52f0211f9052fefa64e23c6a0d81305391589 /src/tofi.h
parent7562d7b539d8013376de2cff494231ba307f4ee1 (diff)
Switch from using (E)GL to wl_shm.
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory (~100 MB). For such a small, simple program that just wants to launch as quickly as possible, wl_shm performs better.
Diffstat (limited to 'src/tofi.h')
-rw-r--r--src/tofi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tofi.h b/src/tofi.h
index 87c0dfe..36869a6 100644
--- a/src/tofi.h
+++ b/src/tofi.h
@@ -3,7 +3,6 @@
#include <stdbool.h>
#include <stdint.h>
-#include <xdg-shell.h>
#include "color.h"
#include "entry.h"
#include "image.h"
@@ -17,6 +16,7 @@ struct tofi {
struct wl_compositor *wl_compositor;
struct wl_seat *wl_seat;
struct wl_output *wl_output;
+ struct wl_shm *wl_shm;
struct zwlr_layer_shell_v1 *zwlr_layer_shell;
uint32_t wl_display_name;
@@ -24,6 +24,7 @@ struct tofi {
uint32_t wl_compositor_name;
uint32_t wl_seat_name;
uint32_t wl_output_name;
+ uint32_t wl_shm_name;
uint32_t zwlr_layer_shell_name;
/* Objects */