aboutsummaryrefslogtreecommitdiff
path: root/rootston/wl_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/wl_shell.c')
-rw-r--r--rootston/wl_shell.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/rootston/wl_shell.c b/rootston/wl_shell.c
new file mode 100644
index 00000000..0dcc0565
--- /dev/null
+++ b/rootston/wl_shell.c
@@ -0,0 +1,20 @@
+#include <assert.h>
+#include <stdlib.h>
+#include <stdbool.h>
+#include <wayland-server.h>
+#include <wlr/types/wlr_box.h>
+#include <wlr/types/wlr_surface.h>
+#include <wlr/types/wlr_wl_shell.h>
+#include <wlr/util/log.h>
+#include "rootston/desktop.h"
+#include "rootston/server.h"
+#include "rootston/input.h"
+
+void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
+ struct roots_desktop *desktop =
+ wl_container_of(listener, desktop, wl_shell_surface);
+
+ struct wlr_wl_shell_surface *surface = data;
+ wlr_log(L_DEBUG, "new wl_shell surface");
+ wlr_wl_shell_surface_ping(surface);
+}