summary refs log tree commit diff
diff options
context:
space:
mode:
authorstsp <stsp>2010-02-02 19:28:46 +0000
committerstsp <stsp>2010-02-02 19:28:46 +0000
commitc4a97053cd98160c9e0f55e2b7fb71de73616579 (patch)
tree1157b28e06f080a4fb4d05716b3eb642b80ea1d6
parente88bda0df5002adb58fb96bd8f5b5b34f619c41d (diff)
downloadcwm-c4a97053cd98160c9e0f55e2b7fb71de73616579.tar.gz
cwm-c4a97053cd98160c9e0f55e2b7fb71de73616579.tar.xz
cwm-c4a97053cd98160c9e0f55e2b7fb71de73616579.zip
Honour program-specified window position in size hints when placing windows.
Makes XMMS windows appear as expected.

ok okan, oga
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 7c569b7..46f9323 100644
--- a/client.c
+++ b/client.c
@@ -627,7 +627,7 @@ client_placecalc(struct client_ctx *cc)
 	struct screen_ctx	*sc = cc->sc;
 	int			 xslack, yslack;
 
-	if (cc->size->flags & USPosition) {
+	if (cc->size->flags & (USPosition|PPosition)) {
 		/*
 		 * Ignore XINERAMA screens, just make sure it's somewhere
 		 * in the virtual desktop. else it stops people putting xterms