aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2011-09-05 07:37:55 +0000
committerokan2011-09-05 07:37:55 +0000
commit6ddb274724b404adf7d7bd33dae5ebb383784375 (patch)
tree8018b7cbb7e46e1de3ef6d546edf5bd3399530ae
parent72f03bc4a8c60da10bec95e806bf71c4959a022b (diff)
downloadcwm-6ddb274724b404adf7d7bd33dae5ebb383784375.tar.gz
restore a comment and add another for clarity.
-rw-r--r--client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/client.c b/client.c
index 89af2ea..327f966 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.89 2011/09/04 16:59:31 oga Exp $
+ * $OpenBSD: client.c,v 1.90 2011/09/05 07:37:55 okan Exp $
*/
#include <sys/param.h>
@@ -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;