equal
deleted
inserted
replaced
176 void toggletag(const char *arg); |
176 void toggletag(const char *arg); |
177 void toggleview(const char *arg); |
177 void toggleview(const char *arg); |
178 void unban(Client *c); |
178 void unban(Client *c); |
179 void unmanage(Client *c); |
179 void unmanage(Client *c); |
180 void unmapnotify(XEvent *e); |
180 void unmapnotify(XEvent *e); |
|
181 void updatebarpos(void); |
181 void updatesizehints(Client *c); |
182 void updatesizehints(Client *c); |
182 void updatetitle(Client *c); |
183 void updatetitle(Client *c); |
183 void updatewmhints(Client *c); |
184 void updatewmhints(Client *c); |
184 void view(const char *arg); |
185 void view(const char *arg); |
185 void viewprevtag(const char *arg); /* views previous selected tags */ |
186 void viewprevtag(const char *arg); /* views previous selected tags */ |
1413 mox = wx; |
1414 mox = wx; |
1414 moy = wy; |
1415 moy = wy; |
1415 mow = ww; |
1416 mow = ww; |
1416 moh = wh; |
1417 moh = wh; |
1417 |
1418 |
1418 if(dc.drawable != 0) |
1419 updatebarpos(); |
1419 XFreePixmap(dpy, dc.drawable); |
|
1420 dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen)); |
|
1421 XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); |
|
1422 } |
1420 } |
1423 |
1421 |
1424 void |
1422 void |
1425 setlayout(const char *arg) { |
1423 setlayout(const char *arg) { |
1426 static Layout *revert = 0; |
1424 static Layout *revert = 0; |
1741 if((c = getclient(ev->window))) |
1739 if((c = getclient(ev->window))) |
1742 unmanage(c); |
1740 unmanage(c); |
1743 } |
1741 } |
1744 |
1742 |
1745 void |
1743 void |
|
1744 updatebarpos(void) { |
|
1745 |
|
1746 if(dc.drawable != 0) |
|
1747 XFreePixmap(dpy, dc.drawable); |
|
1748 dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen)); |
|
1749 XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); |
|
1750 } |
|
1751 |
|
1752 void |
1746 updatesizehints(Client *c) { |
1753 updatesizehints(Client *c) { |
1747 long msize; |
1754 long msize; |
1748 XSizeHints size; |
1755 XSizeHints size; |
1749 |
1756 |
1750 if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags) |
1757 if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags) |