forked from openbsd/ports
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore client creating session when working out size if it is a control
client.
- Loading branch information
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: resize.c,v 1.44 2021/06/10 07:29:45 nicm Exp $ */ | ||
/* $OpenBSD: resize.c,v 1.45 2021/08/25 10:15:15 nicm Exp $ */ | ||
|
||
/* | ||
* Copyright (c) 2007 Nicholas Marriott <[email protected]> | ||
|
@@ -243,6 +243,13 @@ default_window_size(struct client *c, struct session *s, struct window *w, | |
} | ||
} | ||
|
||
/* | ||
* Ignore the given client if it is a control client - the creating | ||
* client should only affect the size if it is not a control client. | ||
*/ | ||
if (c != NULL && (c->flags & CLIENT_CONTROL)) | ||
c = NULL; | ||
|
||
/* | ||
* Look for a client to base the size on. If none exists (or the type | ||
* is manual), use the default-size option. | ||
|