]> icculus.org git repositories - dana/openbox.git/commit
Clean up the FillToEdge action implementation
authorDana Jansens <danakj@orodu.net>
Sun, 1 Sep 2013 20:48:39 +0000 (16:48 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 2 Sep 2013 18:10:37 +0000 (14:10 -0400)
commitf5e9df18a46240b4fdaebf540a1052e65507dcfe
treec0497b9c48a65a0ebbc6c3bbc8248dd9ec7598e2
parentf757e7449f2184c088751c7c8d451b0db9b70981
Clean up the FillToEdge action implementation

This extend the client_find_resize_directional() method to support
two growing modes, and return a bool for whether it was able to grow/shrink.

The client_find_resize_directional() method now takes an enum instead
of a bool, with two growing modes. The old mode which always tries to
grow, the a new mode that will only grow if the client's edge is not
already at a grow stopping point (ie against the edge of another window).
openbox/actions/growtoedge.c
openbox/client.c
openbox/client.h
openbox/moveresize.c