summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dwl.c b/dwl.c
index 8ca58f6..529c0c7 100644
--- a/dwl.c
+++ b/dwl.c
@@ -263,8 +263,8 @@ static void togglefloating(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unmaplayersurface(LayerSurface *layersurface);
-static void unmapnotify(struct wl_listener *listener, void *data);
static void unmaplayersurfacenotify(struct wl_listener *listener, void *data);
+static void unmapnotify(struct wl_listener *listener, void *data);
static void view(const Arg *arg);
static Client *xytoclient(double x, double y);
static struct wlr_surface *xytolayersurface(struct wl_list *layer_surfaces,
@@ -2099,6 +2099,13 @@ unmaplayersurface(LayerSurface *layersurface)
}
void
+unmaplayersurfacenotify(struct wl_listener *listener, void *data)
+{
+ LayerSurface *layersurface = wl_container_of(listener, layersurface, unmap);
+ unmaplayersurface(layersurface);
+}
+
+void
unmapnotify(struct wl_listener *listener, void *data)
{
/* Called when the surface is unmapped, and should no longer be shown. */
@@ -2114,13 +2121,6 @@ unmapnotify(struct wl_listener *listener, void *data)
}
void
-unmaplayersurfacenotify(struct wl_listener *listener, void *data)
-{
- LayerSurface *layersurface = wl_container_of(listener, layersurface, unmap);
- unmaplayersurface(layersurface);
-}
-
-void
view(const Arg *arg)
{
Client *sel = selclient();