mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-09 15:05:58 +01:00
20 lines
596 B
C
20 lines
596 B
C
#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);
|
|
}
|