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 /screen.c | |
parent | 47765f728614c348aa7dfc2eed6f754efc376922 (diff) |
moved updatebarpos to screen
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -370,6 +370,32 @@ toggleview(const char *arg) { } void +updatebarpos(void) { + XEvent ev; + + wax = sx; + way = sy; + wah = sh; + waw = sw; + switch(bpos) { + default: + wah -= bh; + way += bh; + XMoveWindow(dpy, barwin, sx, sy); + break; + case BarBot: + wah -= bh; + XMoveWindow(dpy, barwin, sx, sy + wah); + break; + case BarOff: + XMoveWindow(dpy, barwin, sx, sy - bh); + break; + } + XSync(dpy, False); + while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); +} + +void view(const char *arg) { unsigned int i; |