all repos — openbox @ c4fcfc07e1921567b8bd4f098668e92e5cd597c9

openbox fork - make it a bit more like ryudo

dont resize the window when restoring session state if the sizes are invalid
Dana Jansens danakj@orodu.net
commit

c4fcfc07e1921567b8bd4f098668e92e5cd597c9

parent

450a291b570ae9dbf791f30cec50be58a3782272

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -526,8 +526,9 @@

RECT_SET(self->area, self->session->x, self->session->y, self->session->w, self->session->h); self->positioned = TRUE; - XResizeWindow(ob_display, self->window, - self->session->w, self->session->h); + if (self->session->w > 0 && self->session->h > 0) + XResizeWindow(ob_display, self->window, + self->session->w, self->session->h); self->desktop = (self->session->desktop == DESKTOP_ALL ? self->session->desktop :