~smlavine/dwm

c6b81431316e0818f551f2121fa9c675cb37c64a — Sebastian LaVine 1 year, 10 months ago 13569de
Revert "manage: For isfloating/oldstate check/set, ensure trans client actually exists"

This reverts commit bece862a0fc4fc18ef9065b18cd28e2032d0d975.

With this commit, yes, many windows like with SDL are tiled, but so are
windows that I don't want tiled, like GPG pinentry.

I'll wait to apply this when these issues are addressed, if ever. In the
meantime I've found that with SDL programs, passing the flag
SDL_WINDOW_RESIZABLE to SDL_CreateWindow() will make a window tilable
just the same.
1 files changed, 1 insertions(+), 1 deletions(-)

M dwm.c
M dwm.c => dwm.c +1 -1
@@ 1154,7 1154,7 @@ manage(Window w, XWindowAttributes *wa)
	XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
	grabbuttons(c, 0);
	if (!c->isfloating)
		c->isfloating = c->oldstate = t || c->isfixed;
		c->isfloating = c->oldstate = trans != None || c->isfixed;
	if (c->isfloating)
		XRaiseWindow(dpy, c->win);
	attachBelow(c);