~onli/simdock/master

« back to all changes in this revision

Viewing changes to src/tasks.cc

  • Committer: onli
  • Date: 2014-09-17 15:44:37 UTC
  • Revision ID: git-v1:4f807ee7350d398a4a92a07155e921a0e89ace0d
fix refresh issue & wrong drag detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
                img->img = ti.icon.ConvertToImage();
156
156
            }
157
157
            
158
 
              wxGetApp().frame->appSize = FirstPosition(ca->settings, ImagesList);
 
158
            wxGetApp().frame->appSize = FirstPosition(ca->settings, ImagesList);
159
159
            wxGetApp().updateSize();
160
 
              return;
161
 
          }
162
 
    }
 
160
            wxGetApp().refresh();
 
161
            return;
 
162
        }
 
163
    }    
163
164
}
164
165
 
165
166
static void tasks_window_opened (WnckScreen *screen, WnckWindow *window, callbackArgs* ca) {
187
188
            // refresh the icon, cause sometimes the splash-screen has not
188
189
            // a valid icon, but the program does
189
190
            img->img = ti.icon.ConvertToImage();
 
191
            wxGetApp().refresh();
190
192
            return;
191
193
        }
192
194
    }
267
269
    ImagesList->Add(si);
268
270
    wxGetApp().frame->appSize = FirstPosition(settings, ImagesList);
269
271
    wxGetApp().updateSize();
 
272
    wxGetApp().refresh();
270
273
}
271
274
 
272
275
void tasks_fillList (ImagesArray * ImagesList, simSettings settings) {