diff options
author | okan <okan> | 2011-09-05 07:37:55 +0000 |
---|---|---|
committer | okan <okan> | 2011-09-05 07:37:55 +0000 |
commit | d85b3adc0c77fb932927671cd0a473885a975c3e (patch) | |
tree | 1a645edf368496d4dbf2c62445dc3d8e1a366acb /client.c | |
parent | 44d8b1d3ace79e2c648e859f931f76a027f51ff0 (diff) | |
download | cwm-d85b3adc0c77fb932927671cd0a473885a975c3e.tar.gz cwm-d85b3adc0c77fb932927671cd0a473885a975c3e.tar.xz cwm-d85b3adc0c77fb932927671cd0a473885a975c3e.zip |
restore a comment and add another for clarity.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client.c b/client.c index b46dede..e7783a4 100644 --- a/client.c +++ b/client.c @@ -300,7 +300,10 @@ client_maximize(struct client_ctx *cc) if (HasXinerama) { XineramaScreenInfo *xine; - /* * that's probably more fair than if just the origin of * a window is poking over a boundary + /* + * pick screen that the middle of the window is on. + * that's probably more fair than if just the origin of + * a window is poking over a boundary */ xine = screen_find_xinerama(sc, cc->geom.x + cc->geom.width / 2, @@ -394,6 +397,7 @@ client_horizmaximize(struct client_ctx *cc) cc->savegeom.x = cc->geom.x; cc->savegeom.width = cc->geom.width; + /* if this will make us fully maximized then remove boundary */ if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_VMAXIMIZED) { cc->geom.height += cc->bwidth * 2; cc->bwidth = 0; |