~ruther/dwl

8781f4dbf5bb4507239d29cd9ae8bb5c3fa0b2c5 — Leonardo Hernández Hernández 1 year, 7 months ago b299e01 + df131cd
Merge remote-tracking branch 'upstream/main' into wlroots-next
1 files changed, 10 insertions(+), 6 deletions(-)

M dwl.c
M dwl.c => dwl.c +10 -6
@@ 56,7 56,7 @@
#include <xkbcommon/xkbcommon.h>
#ifdef XWAYLAND
#include <wlr/xwayland.h>
#include <X11/Xlib.h>
#include <xcb/xcb.h>
#include <xcb/xcb_icccm.h>
#endif



@@ 382,11 382,11 @@ static void associatex11(struct wl_listener *listener, void *data);
static void configurex11(struct wl_listener *listener, void *data);
static void createnotifyx11(struct wl_listener *listener, void *data);
static void dissociatex11(struct wl_listener *listener, void *data);
static Atom getatom(xcb_connection_t *xc, const char *name);
static xcb_atom_t getatom(xcb_connection_t *xc, const char *name);
static void sethints(struct wl_listener *listener, void *data);
static void xwaylandready(struct wl_listener *listener, void *data);
static struct wlr_xwayland *xwayland;
static Atom netatom[NetLast];
static xcb_atom_t netatom[NetLast];
#endif

/* configuration, allows nested code to access above variables */


@@ 2790,10 2790,10 @@ dissociatex11(struct wl_listener *listener, void *data)
	wl_list_remove(&c->unmap.link);
}

Atom
xcb_atom_t
getatom(xcb_connection_t *xc, const char *name)
{
	Atom atom = 0;
	xcb_atom_t atom = 0;
	xcb_intern_atom_reply_t *reply;
	xcb_intern_atom_cookie_t cookie = xcb_intern_atom(xc, 0, strlen(name), name);
	if ((reply = xcb_intern_atom_reply(xc, cookie, NULL)))


@@ 2807,11 2807,15 @@ void
sethints(struct wl_listener *listener, void *data)
{
	Client *c = wl_container_of(listener, c, set_hints);
	struct wlr_surface *surface = client_surface(c);
	if (c == focustop(selmon))
		return;

	client_set_border_color(c, urgentcolor);
	c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);

	if (c->isurgent && surface && surface->mapped)
		client_set_border_color(c, urgentcolor);

	printstatus();
}


Do not follow this link