Skip to content

Commit

Permalink
Added better state handling for events, getprop.c (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Jul 6, 2024
1 parent b7da87a commit b1c49aa
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions getprop.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ UpdateTrans(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _XCB_CO
if(!ISFLOATING(c))
{ setfloating(c, 1);
}
setwtypedialog(c, 1);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand All @@ -155,7 +158,10 @@ UpdateWindowState(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _
LockMainThread();
Client *c = wintoclient(cookie->win);
if(c)
{ clientinitwtype(c, prop);
{
clientinitwtype(c, prop);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand All @@ -171,7 +177,10 @@ UpdateWindowType(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _X
LockMainThread();
Client *c = wintoclient(cookie->win);
if(c)
{ clientinitwstate(c, prop);
{
clientinitwstate(c, prop);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand All @@ -188,7 +197,10 @@ UpdateSizeHints(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _XC
LockMainThread();
Client *c = wintoclient(cookie->win);
if(c)
{ updatesizehints(c, &hints);
{
updatesizehints(c, &hints);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand All @@ -203,7 +215,10 @@ UpdateWMHints(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _XCB_
LockMainThread();
Client *c = wintoclient(cookie->win);
if(c)
{ updatewmhints(c, prop);
{
updatewmhints(c, prop);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand Down Expand Up @@ -343,7 +358,10 @@ UpdateMotifHints(XCBDisplay *display, __Property__Cookie__ *cookie, XCBCookie _X
LockMainThread();
Client *c = wintoclient(cookie->win);
if(c)
{ updatemotifhints(c, prop);
{
updatemotifhints(c, prop);
arrange(c->desktop);
XCBFlush(_wm.dpy);
}
UnlockMainThread();
}
Expand Down

0 comments on commit b1c49aa

Please sign in to comment.