diff options
| author | arg@10ksloc.org <unknown> | 2006-08-02 16:32:05 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-02 16:32:05 +0200 |
| commit | 95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6 (patch) | |
| tree | 98283068f4576b8b2e825dd5eff0eb6e94ddbdc0 /client.c | |
| parent | new stuff (diff) | |
| download | dwm-95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6.tar.gz dwm-95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6.zip | |
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
Diffstat (limited to '')
| -rw-r--r-- | client.c | 32 |
1 files changed, 10 insertions, 22 deletions
| @@ -3,7 +3,6 @@ | |||
| 3 | * See LICENSE file for license details. | 3 | * See LICENSE file for license details. |
| 4 | */ | 4 | */ |
| 5 | #include "dwm.h" | 5 | #include "dwm.h" |
| 6 | |||
| 7 | #include <stdlib.h> | 6 | #include <stdlib.h> |
| 8 | #include <string.h> | 7 | #include <string.h> |
| 9 | #include <X11/Xatom.h> | 8 | #include <X11/Xatom.h> |
| @@ -219,7 +218,7 @@ manage(Window w, XWindowAttributes *wa) | |||
| 219 | c->h = wa->height; | 218 | c->h = wa->height; |
| 220 | c->th = bh; | 219 | c->th = bh; |
| 221 | 220 | ||
| 222 | c->border = 1; | 221 | c->border = 0; |
| 223 | setsize(c); | 222 | setsize(c); |
| 224 | 223 | ||
| 225 | if(c->h != sh && c->y < bh) | 224 | if(c->h != sh && c->y < bh) |
| @@ -254,8 +253,7 @@ manage(Window w, XWindowAttributes *wa) | |||
| 254 | if(!c->isfloat) | 253 | if(!c->isfloat) |
| 255 | c->isfloat = trans | 254 | c->isfloat = trans |
| 256 | || (c->maxw && c->minw && | 255 | || (c->maxw && c->minw && |
| 257 | c->maxw == c->minw && c->maxh == c->minh) | 256 | c->maxw == c->minw && c->maxh == c->minh); |
| 258 | || (c->w == sw && c->h == sh); | ||
| 259 | settitle(c); | 257 | settitle(c); |
| 260 | arrange(NULL); | 258 | arrange(NULL); |
| 261 | 259 | ||
| @@ -271,7 +269,7 @@ resize(Client *c, Bool sizehints, Corner sticky) | |||
| 271 | { | 269 | { |
| 272 | int bottom = c->y + c->h; | 270 | int bottom = c->y + c->h; |
| 273 | int right = c->x + c->w; | 271 | int right = c->x + c->w; |
| 274 | XConfigureEvent e; | 272 | /*XConfigureEvent e;*/ |
| 275 | XWindowChanges wc; | 273 | XWindowChanges wc; |
| 276 | 274 | ||
| 277 | if(sizehints) { | 275 | if(sizehints) { |
| @@ -302,21 +300,11 @@ resize(Client *c, Bool sizehints, Corner sticky) | |||
| 302 | wc.y = c->y; | 300 | wc.y = c->y; |
| 303 | wc.width = c->w; | 301 | wc.width = c->w; |
| 304 | wc.height = c->h; | 302 | wc.height = c->h; |
| 305 | wc.border_width = 1; | 303 | if(c->w == sw && c->h == sh) |
| 306 | XConfigureWindow(dpy, c->win, | 304 | wc.border_width = 0; |
| 307 | CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); | 305 | else |
| 308 | 306 | wc.border_width = 1; | |
| 309 | e.type = ConfigureNotify; | 307 | XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); |
| 310 | e.event = c->win; | ||
| 311 | e.window = c->win; | ||
| 312 | e.x = c->x; | ||
| 313 | e.y = c->y; | ||
| 314 | e.width = c->w; | ||
| 315 | e.height = c->h; | ||
| 316 | e.border_width = c->border; | ||
| 317 | e.above = None; | ||
| 318 | e.override_redirect = False; | ||
| 319 | XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e); | ||
| 320 | XSync(dpy, False); | 308 | XSync(dpy, False); |
| 321 | } | 309 | } |
| 322 | 310 | ||
| @@ -403,8 +391,8 @@ togglemax(Arg *arg) | |||
| 403 | oh = sel->h; | 391 | oh = sel->h; |
| 404 | sel->x = sx; | 392 | sel->x = sx; |
| 405 | sel->y = sy + bh; | 393 | sel->y = sy + bh; |
| 406 | sel->w = sw - 2 * sel->border; | 394 | sel->w = sw - 2; |
| 407 | sel->h = sh - 2 * sel->border - bh; | 395 | sel->h = sh - 2 - bh; |
| 408 | 396 | ||
| 409 | higher(sel); | 397 | higher(sel); |
| 410 | resize(sel, False, TopLeft); | 398 | resize(sel, False, TopLeft); |
