equal
deleted
inserted
replaced
76 |
76 |
77 void |
77 void |
78 ban(Client *c) { |
78 ban(Client *c) { |
79 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
79 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
80 XMoveWindow(dpy, c->twin, c->tx + 2 * sw, c->ty); |
80 XMoveWindow(dpy, c->twin, c->tx + 2 * sw, c->ty); |
|
81 } |
|
82 |
|
83 void |
|
84 configure(Client *c) { |
|
85 XEvent synev; |
|
86 |
|
87 synev.type = ConfigureNotify; |
|
88 synev.xconfigure.display = dpy; |
|
89 synev.xconfigure.event = c->win; |
|
90 synev.xconfigure.window = c->win; |
|
91 synev.xconfigure.x = c->x; |
|
92 synev.xconfigure.y = c->y; |
|
93 synev.xconfigure.width = c->w; |
|
94 synev.xconfigure.height = c->h; |
|
95 synev.xconfigure.border_width = c->border; |
|
96 synev.xconfigure.above = None; |
|
97 XSendEvent(dpy, c->win, True, NoEventMask, &synev); |
81 } |
98 } |
82 |
99 |
83 void |
100 void |
84 focus(Client *c) { |
101 focus(Client *c) { |
85 Client *old; |
102 Client *old; |
297 if(c->w == sw && c->h == sh) |
314 if(c->w == sw && c->h == sh) |
298 wc.border_width = 0; |
315 wc.border_width = 0; |
299 else |
316 else |
300 wc.border_width = 1; |
317 wc.border_width = 1; |
301 XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); |
318 XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); |
|
319 configure(c); |
302 XSync(dpy, False); |
320 XSync(dpy, False); |
303 } |
321 } |
304 |
322 |
305 void |
323 void |
306 updatesize(Client *c) { |
324 updatesize(Client *c) { |