summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-07-03 13:20:51 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-07-03 13:27:51 -0600
commitb4638fef296cc7fa7ce51fa8ac07ecad17985226 (patch)
tree34c214ec11df0d887bb3ec5f5e6515af201f9360
parent71f11e6cf63289d51f152469a0da81a85fe2608c (diff)
drop useless maplayersurfacenotify()
-rw-r--r--dwl.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/dwl.c b/dwl.c
index 3175e79..a0f26bf 100644
--- a/dwl.c
+++ b/dwl.c
@@ -177,7 +177,6 @@ typedef struct {
struct wlr_layer_surface_v1 *layer_surface;
struct wl_listener destroy;
- struct wl_listener map;
struct wl_listener unmap;
struct wl_listener surface_commit;
} LayerSurface;
@@ -298,7 +297,6 @@ static void keypressmod(struct wl_listener *listener, void *data);
static int keyrepeat(void *data);
static void killclient(const Arg *arg);
static void locksession(struct wl_listener *listener, void *data);
-static void maplayersurfacenotify(struct wl_listener *listener, void *data);
static void mapnotify(struct wl_listener *listener, void *data);
static void maximizenotify(struct wl_listener *listener, void *data);
static void monocle(Monitor *m);
@@ -871,7 +869,6 @@ createlayersurface(struct wl_listener *listener, void *data)
l = layer_surface->data = ecalloc(1, sizeof(*l));
l->type = LayerShell;
LISTEN(&surface->events.commit, &l->surface_commit, commitlayersurfacenotify);
- LISTEN(&surface->events.map, &l->map, maplayersurfacenotify);
LISTEN(&surface->events.unmap, &l->unmap, unmaplayersurfacenotify);
LISTEN(&layer_surface->events.destroy, &l->destroy, destroylayersurfacenotify);
@@ -1170,7 +1167,6 @@ destroylayersurfacenotify(struct wl_listener *listener, void *data)
wl_list_remove(&l->link);
wl_list_remove(&l->destroy.link);
- wl_list_remove(&l->map.link);
wl_list_remove(&l->unmap.link);
wl_list_remove(&l->surface_commit.link);
wlr_scene_node_destroy(&l->scene->node);
@@ -1626,12 +1622,6 @@ locksession(struct wl_listener *listener, void *data)
}
void
-maplayersurfacenotify(struct wl_listener *listener, void *data)
-{
- motionnotify(0, NULL, 0, 0, 0, 0);
-}
-
-void
mapnotify(struct wl_listener *listener, void *data)
{
/* Called when the surface is mapped, or ready to display on-screen. */