Skip to content

Commit

Permalink
Fixed ISMAXHORZ(c) incorrectly calculating height instead of width + …
Browse files Browse the repository at this point in the history
…safer eventhandler (#186)
  • Loading branch information
DerjenigeUberMensch authored Jun 22, 2024
1 parent 0c09724 commit 8b13c08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int DOCKEDINITIAL(Client *c) { Monitor *m = c->desktop->mon;
int ISFIXED(Client *c) { return (c->minw != 0) && (c->minh != 0) && (c->minw == c->maxw) && (c->minh == c->maxh); }
int ISURGENT(Client *c) { return c->wstateflags & _STATE_DEMANDS_ATTENTION; }
int NEVERFOCUS(Client *c) { return c->wtypeflags & _TYPE_NEVERFOCUS; }
int ISMAXHORZ(Client *c) { return WIDTH(c) == c->desktop->mon->wh; }
int ISMAXHORZ(Client *c) { return WIDTH(c) == c->desktop->mon->ww; }
int ISMAXVERT(Client *c) { return HEIGHT(c) == c->desktop->mon->wh; }
int ISVISIBLE(Client *c) { return (c->desktop->mon->desksel == c->desktop || ISSTICKY(c)) && !ISHIDDEN(c); }
int SHOWDECOR(Client *c) { return c->flags & _FSTATE_SHOW_DECOR; }
Expand Down Expand Up @@ -1279,8 +1279,8 @@ eventhandler(XCBGenericEvent *ev)
{
/* int for speed */
const int cleanev = XCB_EVENT_RESPONSE_TYPE(ev);
//DEBUG("%s", XCBGetEventName(cleanev));
if(handler[cleanev])
/* DEBUG("%s", XCBGetEventName(cleanev)); */
if(LENGTH(handler) > cleanev)
{ handler[cleanev](ev);
}
}
Expand Down

0 comments on commit 8b13c08

Please sign in to comment.