Changeset 840032d for window.c


Ignore:
Timestamp:
Jun 3, 2010, 6:24:13 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
6e90da8
Parents:
853f397
Message:
Don't emit a resize signal if the window only moved

Restore some old behavior.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r8f9a044 r840032d  
    475475void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x)
    476476{
     477  int resized;
    477478  /* can't move the screen */
    478479  if (w->is_screen) {
     
    484485    return;
    485486  }
     487  resized = w->nlines != nlines || w->ncols != ncols;
    486488
    487489  _owl_window_unrealize(w);
     
    490492  w->nlines = nlines;
    491493  w->ncols = ncols;
    492   g_signal_emit(w, window_signals[RESIZED], 0);
     494  if (resized)
     495    g_signal_emit(w, window_signals[RESIZED], 0);
    493496  if (w->shown) {
    494497    /* ncurses is screwy: give up and recreate windows at the right place */
Note: See TracChangeset for help on using the changeset viewer.