event: fix configure requests where a window in another desktop requests focus; client, cursor, event, grab, key, manage, menu: clang-format

This commit is contained in:
Iris Lightshard 2021-04-29 00:41:36 -04:00
parent 2a3fb33866
commit 548f2f7cba
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
7 changed files with 36 additions and 36 deletions

View file

@ -141,8 +141,7 @@ static char grey_bits[] = {0x01, 0x04};
static XColor bl, wh; static XColor bl, wh;
Cursor getcursor(Cursordata* c, ScreenInfo* s) Cursor getcursor(Cursordata* c, ScreenInfo* s) {
{
Pixmap f, m; Pixmap f, m;
f = XCreatePixmapFromBitmapData( f = XCreatePixmapFromBitmapData(
@ -166,8 +165,7 @@ Cursor getcursor(Cursordata* c, ScreenInfo* s)
return XCreatePixmapCursor(dpy, f, m, &bl, &wh, c->hot[0], c->hot[1]); return XCreatePixmapCursor(dpy, f, m, &bl, &wh, c->hot[0], c->hot[1]);
} }
void initcurs(ScreenInfo* s) void initcurs(ScreenInfo* s) {
{
XColor dummy; XColor dummy;
XAllocNamedColor(dpy, DefaultColormap(dpy, s->num), "black", &bl, &dummy); XAllocNamedColor(dpy, DefaultColormap(dpy, s->num), "black", &bl, &dummy);

View file

@ -159,6 +159,8 @@ void configurereq(XConfigureRequestEvent* e) {
XConfigureWindow(dpy, c->parent, e->value_mask, &wc); XConfigureWindow(dpy, c->parent, e->value_mask, &wc);
if (e->value_mask & CWStackMode) { if (e->value_mask & CWStackMode) {
if (c->virt > 0 && c->virt != virt)
switch_to(c->virt);
top(c); top(c);
active(c); active(c);
} }