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:
parent
2a3fb33866
commit
548f2f7cba
7 changed files with 36 additions and 36 deletions
6
cursor.c
6
cursor.c
|
@ -141,8 +141,7 @@ static char grey_bits[] = {0x01, 0x04};
|
|||
|
||||
static XColor bl, wh;
|
||||
|
||||
Cursor getcursor(Cursordata* c, ScreenInfo* s)
|
||||
{
|
||||
Cursor getcursor(Cursordata* c, ScreenInfo* s) {
|
||||
Pixmap f, m;
|
||||
|
||||
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]);
|
||||
}
|
||||
|
||||
void initcurs(ScreenInfo* s)
|
||||
{
|
||||
void initcurs(ScreenInfo* s) {
|
||||
XColor dummy;
|
||||
|
||||
XAllocNamedColor(dpy, DefaultColormap(dpy, s->num), "black", &bl, &dummy);
|
||||
|
|
2
event.c
2
event.c
|
@ -159,6 +159,8 @@ void configurereq(XConfigureRequestEvent* e) {
|
|||
XConfigureWindow(dpy, c->parent, e->value_mask, &wc);
|
||||
|
||||
if (e->value_mask & CWStackMode) {
|
||||
if (c->virt > 0 && c->virt != virt)
|
||||
switch_to(c->virt);
|
||||
top(c);
|
||||
active(c);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue