diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-19 11:00:47 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-19 11:00:47 +0200 |
| commit | b975c4728046052a32626378df193217a96fbefc (patch) | |
| tree | e299b09d2cf9c1853a34531fd9f6d0cb20ad8da0 /main.c | |
| parent | added screen.c, removed layout.c and tag.c (diff) | |
| download | dwm-b975c4728046052a32626378df193217a96fbefc.tar.gz dwm-b975c4728046052a32626378df193217a96fbefc.zip | |
moved updatebarpos to screen
Diffstat (limited to '')
| -rw-r--r-- | main.c | 26 |
1 files changed, 0 insertions, 26 deletions
| @@ -253,32 +253,6 @@ quit(const char *arg) { | |||
| 253 | readin = running = False; | 253 | readin = running = False; |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | void | ||
| 257 | updatebarpos(void) { | ||
| 258 | XEvent ev; | ||
| 259 | |||
| 260 | wax = sx; | ||
| 261 | way = sy; | ||
| 262 | wah = sh; | ||
| 263 | waw = sw; | ||
| 264 | switch(bpos) { | ||
| 265 | default: | ||
| 266 | wah -= bh; | ||
| 267 | way += bh; | ||
| 268 | XMoveWindow(dpy, barwin, sx, sy); | ||
| 269 | break; | ||
| 270 | case BarBot: | ||
| 271 | wah -= bh; | ||
| 272 | XMoveWindow(dpy, barwin, sx, sy + wah); | ||
| 273 | break; | ||
| 274 | case BarOff: | ||
| 275 | XMoveWindow(dpy, barwin, sx, sy - bh); | ||
| 276 | break; | ||
| 277 | } | ||
| 278 | XSync(dpy, False); | ||
| 279 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | ||
| 280 | } | ||
| 281 | |||
| 282 | /* There's no way to check accesses to destroyed windows, thus those cases are | 256 | /* There's no way to check accesses to destroyed windows, thus those cases are |
| 283 | * ignored (especially on UnmapNotify's). Other types of errors call Xlibs | 257 | * ignored (especially on UnmapNotify's). Other types of errors call Xlibs |
| 284 | * default error handler, which may call exit. | 258 | * default error handler, which may call exit. |
