Changeset 2376 for neercs


Ignore:
Timestamp:
Jun 13, 2008, 5:49:23 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Don't crash when the window become too small
File:
1 edited

Legend:

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

    r2369 r2376  
    2727
    2828    if(w==s->w && h==s->h) return;
    29     if(w == 0 || h == 0) return;
     29    if(w <= 0 || h <= 0) return;
    3030
    3131    s->w = w;
     
    6767    int w = (screen_list->width / screen_list->count) - 1;
    6868    int h = (screen_list->height) - 2;
    69 
    7069
    7170    for(i = 0; i < screen_list->count; i++)
Note: See TracChangeset for help on using the changeset viewer.