mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Deal with Java AWT rendering inanity. Closes issue #5.
This commit is contained in:
parent
16670eb3fd
commit
1ede2c9895
@ -181,6 +181,7 @@ ewmh_initclient(Client *c) {
|
|||||||
ewmh_getwintype(c);
|
ewmh_getwintype(c);
|
||||||
ewmh_getwinstate(c);
|
ewmh_getwinstate(c);
|
||||||
ewmh_getstrut(c);
|
ewmh_getstrut(c);
|
||||||
|
ewmh_framesize(c);
|
||||||
ewmh_updateclientlist();
|
ewmh_updateclientlist();
|
||||||
pushhandler(&c->w, &client_handlers, c);
|
pushhandler(&c->w, &client_handlers, c);
|
||||||
}
|
}
|
||||||
@ -501,18 +502,21 @@ static Handlers root_handlers = {
|
|||||||
|
|
||||||
void
|
void
|
||||||
ewmh_framesize(Client *c) {
|
ewmh_framesize(Client *c) {
|
||||||
Rectangle r;
|
Rectangle rc, rf;
|
||||||
Frame *f;
|
Frame *f;
|
||||||
|
|
||||||
f = c->sel;
|
if((f = c->sel)) {
|
||||||
r.min.x = f->crect.min.x;
|
rc = f->crect;
|
||||||
r.min.y = f->crect.min.y;
|
rf = f->r;
|
||||||
r.max.x = Dx(f->r) - f->crect.max.x;
|
}
|
||||||
r.max.y = Dy(f->r) - f->crect.max.y;
|
else {
|
||||||
|
rf = frame_client2rect(c, ZR, c->floating);
|
||||||
|
rc = rectsubpt(ZR, rf.min);
|
||||||
|
}
|
||||||
|
|
||||||
long extents[] = {
|
long extents[] = {
|
||||||
r.min.x, r.max.x,
|
rc.min.x, Dx(rf) - rc.max.x,
|
||||||
r.min.y, r.max.y,
|
rc.min.y, Dy(rf) - rc.max.y,
|
||||||
};
|
};
|
||||||
clientprop_long(c, PExtents, Net("FRAME_EXTENTS"), "CARDINAL",
|
clientprop_long(c, PExtents, Net("FRAME_EXTENTS"), "CARDINAL",
|
||||||
extents, nelem(extents));
|
extents, nelem(extents));
|
||||||
|
Loading…
Reference in New Issue
Block a user