Changeset 3922 for neercs


Ignore:
Timestamp:
Nov 17, 2009, 9:58:32 PM (10 years ago)
Author:
Pascal Terjan
Message:
  • Drop duplicate code, when not in_switch, cube is same as full
File:
1 edited

Legend:

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

    r3921 r3922  
    6868        update_windows_props_vsplit(screen_list);
    6969        break;
     70    case WM_FULL:
    7071    case WM_CUBE:
    71         update_windows_props_cube(screen_list);
    72         break;
    73     case WM_FULL:
    7472    default:
    7573        update_windows_props_full(screen_list);
     
    163161        y--;
    164162    }
    165 }
    166 
    167 void update_windows_props_cube(struct screen_list *screen_list)
    168 {
    169     int i;
    170     int w = screen_list->width - 2;
    171     int h = screen_list->height - 2;
    172    
    173     for(i = 0; i < screen_list->count; i++)
    174     {
    175         screen_list->screen[i]->visible = 0;
    176         screen_list->screen[i]->x = 1;
    177         screen_list->screen[i]->y = 1;
    178        
    179         resize_screen(screen_list->screen[i],
    180                       w, h);
    181     }
    182     screen_list->screen[screen_list->pty]->visible = 1;
    183163}
    184164
Note: See TracChangeset for help on using the changeset viewer.