use max screen area for arrange windows
fluxgen fluxgen
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
src/WorkspaceCmd.cc
→
src/WorkspaceCmd.cc
@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WorkspaceCmd.cc,v 1.9 2003/12/30 18:15:55 fluxgen Exp $ +// $Id: WorkspaceCmd.cc,v 1.10 2004/01/16 09:21:31 fluxgen Exp $ #include "WorkspaceCmd.hh"@@ -123,8 +123,9 @@
if (win_count == 0) return; - const unsigned int max_width = screen->width(); - const unsigned int max_heigth = screen->height(); + const int head = screen->getCurrHead(); + const unsigned int max_width = screen->maxRight(head) - screen->maxLeft(head); + const unsigned int max_heigth = screen->maxBottom(head) - screen->maxTop(head); // try to get the same number of rows as columns. unsigned int rows = int(sqrt(win_count)); // truncate to lower