Bugfix: resize window check should check for null
When checking the window type for a resize command, first check to see if the window property is null before checking whether or not it is a dock window. The window may be null in the case it is a branch container. fixes #1220
This commit is contained in:
committed by
Michael Stapelberg
parent
2cc51841a5
commit
ea551e4d99
@ -782,7 +782,7 @@ void cmd_resize(I3_CMD, char *way, char *direction, char *resize_px, char *resiz
|
||||
owindow *current;
|
||||
TAILQ_FOREACH(current, &owindows, owindows) {
|
||||
/* Don't handle dock windows (issue #1201) */
|
||||
if (current->con->window->dock) {
|
||||
if (current->con->window && current->con->window->dock) {
|
||||
DLOG("This is a dock window. Not resizing (con = %p)\n)", current->con);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user