summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2010-02-02 19:28:47 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2010-02-02 19:28:47 +0000
commit091552a4625619fbbc8ea6a64e3d5ee52fe8cd54 (patch)
treef0d621d45b3e3d2d43cf15b77bd5ea33660d04bd /app/cwm
parente603d8e876f833e8d5428577f0bbc265589e6e72 (diff)
Honour program-specified window position in size hints when placing windows.
Makes XMMS windows appear as expected. ok okan, oga
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index 1c4bb5dc8..cc457e4a1 100644
--- a/app/cwm/client.c
+++ b/app/cwm/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.
*
- * $Id: client.c,v 1.73 2010/01/27 03:04:50 okan Exp $
+ * $Id: client.c,v 1.74 2010/02/02 19:28:46 stsp Exp $
*/
#include <sys/param.h>
@@ -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