aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2020-02-07 18:53:41 +0000
committerWynn Wolf Arbor2020-03-18 14:28:38 +0100
commita4006dcef17be430ad3cc2c2a63ea1de75a20d62 (patch)
tree33b043c2467a513a8c6439ea5865e722048aa7c8 /client.c
parent272293062fd32f1c87f5497c7b7dccedd8d724fb (diff)
downloadcwm-a4006dcef17be430ad3cc2c2a63ea1de75a20d62.tar.gz
Allow the 'empty' group clients to be window-{h,v}tile'd.
Behaviour (or lack there of) noticed by Raf Czlonka.
Diffstat (limited to '')
-rw-r--r--client.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/client.c b/client.c
index 8c381e5..0b5f4b7 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.255 2019/03/07 14:28:17 okan Exp $
+ * $OpenBSD: client.c,v 1.256 2020/02/07 18:53:41 okan Exp $
*/
#include <sys/types.h>
@@ -971,10 +971,7 @@ client_htile(struct client_ctx *cc)
struct geom area;
int i, n, mh, x, w, h;
- if (!cc->gc)
- return;
i = n = 0;
-
area = screen_area(sc,
cc->geom.x + cc->geom.w / 2,
cc->geom.y + cc->geom.h / 2, CWM_GAP);
@@ -1042,10 +1039,7 @@ client_vtile(struct client_ctx *cc)
struct geom area;
int i, n, mw, y, w, h;
- if (!cc->gc)
- return;
i = n = 0;
-
area = screen_area(sc,
cc->geom.x + cc->geom.w / 2,
cc->geom.y + cc->geom.h / 2, CWM_GAP);