mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
check cc->gc directly
This commit is contained in:
parent
823566a653
commit
01be5b4e4a
6
client.c
6
client.c
@ -960,12 +960,11 @@ void
|
|||||||
client_htile(struct client_ctx *cc)
|
client_htile(struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
struct client_ctx *ci;
|
struct client_ctx *ci;
|
||||||
struct group_ctx *gc = cc->gc;
|
|
||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct geom area;
|
struct geom area;
|
||||||
int i, n, mh, x, w, h;
|
int i, n, mh, x, w, h;
|
||||||
|
|
||||||
if (!gc)
|
if (!cc->gc)
|
||||||
return;
|
return;
|
||||||
i = n = 0;
|
i = n = 0;
|
||||||
|
|
||||||
@ -1032,12 +1031,11 @@ void
|
|||||||
client_vtile(struct client_ctx *cc)
|
client_vtile(struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
struct client_ctx *ci;
|
struct client_ctx *ci;
|
||||||
struct group_ctx *gc = cc->gc;
|
|
||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct geom area;
|
struct geom area;
|
||||||
int i, n, mw, y, w, h;
|
int i, n, mw, y, w, h;
|
||||||
|
|
||||||
if (!gc)
|
if (!cc->gc)
|
||||||
return;
|
return;
|
||||||
i = n = 0;
|
i = n = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user