Introduction
Introduction Statistics Contact Development Disclaimer Help
tfloating clients get random (x,y) offsets now - dwm - [fork] customized build …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit aebd745f72d3bc049d0af68aec33cf17277b20e9
parent c53980cddcee8afd13ea793134ed3ddf5dbef0e3
Author: [email protected] <unknown>
Date: Wed, 19 Jul 2006 13:22:49 +0200
floating clients get random (x,y) offsets now
Diffstat:
M client.c | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -192,6 +192,7 @@ lower(Client *c)
void
manage(Window w, XWindowAttributes *wa)
{
+ int diff;
Client *c;
XSetWindowAttributes twa;
Window trans;
t@@ -205,6 +206,12 @@ manage(Window w, XWindowAttributes *wa)
c->bw = c->fw = c->tw = wa->width;
c->fh = c->th = wa->height;
c->bh = bh;
+
+ diff = sw - c->fw;
+ c->fx = sx + (random() % diff ? diff : 1);
+ diff = sh - c->fh;
+ c->fy = sx + (random() % diff ? diff : 1);
+
c->border = 1;
c->proto = getproto(c->win);
setsize(c);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.