comparison client.c @ 543:722cffee3770

apply small fix to prevent apps like mplayer wandering when toggling fullscreen
author arg@mig29
date Thu, 26 Oct 2006 15:05:45 +0200
parents a5567a0d3011
children 88ebcfe64c2d
comparison
equal deleted inserted replaced
542:21a924818b61 543:722cffee3770
200 XSetWindowAttributes twa; 200 XSetWindowAttributes twa;
201 201
202 c = emallocz(sizeof(Client)); 202 c = emallocz(sizeof(Client));
203 c->tags = emallocz(ntags * sizeof(Bool)); 203 c->tags = emallocz(ntags * sizeof(Bool));
204 c->win = w; 204 c->win = w;
205 c->x = c->tx = wa->x; 205 c->x = c->tx = wa->x; c->x -= BORDERPX;
206 c->y = c->ty = wa->y; 206 c->y = c->ty = wa->y; c->y -= BORDERPX;
207 c->w = c->tw = wa->width; 207 c->w = c->tw = wa->width;
208 c->h = wa->height; 208 c->h = wa->height;
209 c->th = bh; 209 c->th = bh;
210 c->border = 0; 210 c->border = 0;
211 updatesize(c); 211 updatesize(c);