Changeset 2386 for neercs


Ignore:
Timestamp:
Jun 14, 2008, 12:05:15 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Use remaining space for last term in [hv]split
  • Don't share the horizontal borders in vsplit mode, else we can't write titles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/wm.c

    r2376 r2386  
    7373        screen_list->screen[i]->y = 1;
    7474
    75         resize_screen(screen_list->screen[i],
    76                       w - 1, h);
     75        if(i != screen_list->count -1)
     76        {
     77            resize_screen(screen_list->screen[i],
     78                          w - 1, h);
     79        } else {
     80            resize_screen(screen_list->screen[i],
     81                          screen_list->width - i*w - 1,
     82                          h);
     83        }
    7784    }
    7885}
     
    8895        screen_list->screen[i]->x = 1;
    8996        screen_list->screen[i]->y = (i*h) + 1;
    90         resize_screen(screen_list->screen[i],
    91                       w, h - 1);
     97        if(i != screen_list->count -1)
     98        {
     99            resize_screen(screen_list->screen[i],
     100                          w, h - 2);
     101        } else {
     102            resize_screen(screen_list->screen[i],
     103                          w,
     104                          screen_list->height - i*h - 2);
     105        }
    92106    }
    93107}
Note: See TracChangeset for help on using the changeset viewer.