mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 02:04:14 +00:00
xwayland: unmanaged (dropdown menu) support
This commit is contained in:
parent
8248814983
commit
4c5311c52a
8
Makefile
8
Makefile
@ -32,5 +32,11 @@ dwl: xdg-shell-protocol.o
|
||||
clean:
|
||||
rm -f dwl *.o xdg-shell-protocol.h xdg-shell-protocol.c
|
||||
|
||||
.DEFAULT_GOAL=dwl
|
||||
ctags:
|
||||
ctags-c $(CFLAGS) --project-src xdg-shell-protocol.c xdg-shell-protocol.h dwl.c
|
||||
|
||||
amc: dwl ctags
|
||||
ssh duke rm -f ${HOME}/src/dwl/dwl ; scp * duke:${HOME}/src/dwl
|
||||
|
||||
.DEFAULT_GOAL=amc
|
||||
.PHONY: clean
|
||||
|
||||
14
dwl.c
14
dwl.c
@ -169,7 +169,6 @@ static void createpointer(struct wlr_input_device *device);
|
||||
static void createxdeco(struct wl_listener *listener, void *data);
|
||||
static void cursorframe(struct wl_listener *listener, void *data);
|
||||
static void destroynotify(struct wl_listener *listener, void *data);
|
||||
static void destroynotifyindependent(struct wl_listener *listener, void *data);
|
||||
static void destroyxdeco(struct wl_listener *listener, void *data);
|
||||
static Monitor *dirtomon(int dir);
|
||||
static void focusclient(Client *c, struct wlr_surface *surface, int lift);
|
||||
@ -577,7 +576,7 @@ createnotifyx11(struct wl_listener *listener, void *data)
|
||||
wl_signal_add(&xwayland_surface->events.map, &c->map);
|
||||
c->unmap.notify = unmapnotifyindependent;
|
||||
wl_signal_add(&xwayland_surface->events.unmap, &c->unmap);
|
||||
c->destroy.notify = destroynotifyindependent;
|
||||
c->destroy.notify = destroynotify;
|
||||
wl_signal_add(&xwayland_surface->events.destroy, &c->destroy);
|
||||
} else {
|
||||
|
||||
@ -646,17 +645,6 @@ destroynotify(struct wl_listener *listener, void *data)
|
||||
free(c);
|
||||
}
|
||||
|
||||
void
|
||||
destroynotifyindependent(struct wl_listener *listener, void *data)
|
||||
{
|
||||
/* Called when the surface is destroyed and should never be shown again. */
|
||||
Client *c = wl_container_of(listener, c, destroy);
|
||||
wl_list_remove(&c->map.link);
|
||||
wl_list_remove(&c->unmap.link);
|
||||
wl_list_remove(&c->destroy.link);
|
||||
free(c);
|
||||
}
|
||||
|
||||
void
|
||||
destroyxdeco(struct wl_listener *listener, void *data)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user