comparison gtk3/dw.c @ 1505:fcdd9e3c735a

Use _dw_msleep() insetad of dw_main_sleep() when pausing to get the frame extents property... it is considerably safer in some situations.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 26 Dec 2011 23:31:24 +0000
parents 7060e258e383
children 308bfa8426db
comparison
equal deleted inserted replaced
1504:c6ab88dcf016 1505:fcdd9e3c735a
8785 * time and hope for a better result. 8785 * time and hope for a better result.
8786 */ 8786 */
8787 while((frame.width == 200 || frame.width == (200 + cx)) && 8787 while((frame.width == 200 || frame.width == (200 + cx)) &&
8788 (frame.height == 200 || frame.height == (200 + cy)) && count < 10) 8788 (frame.height == 200 || frame.height == (200 + cy)) && count < 10)
8789 { 8789 {
8790 dw_main_sleep(1); 8790 _dw_msleep(1);
8791 count++; 8791 count++;
8792 gdk_window_get_frame_extents(window, &frame); 8792 gdk_window_get_frame_extents(window, &frame);
8793 } 8793 }
8794 width = frame.width; 8794 width = frame.width;
8795 height = frame.height; 8795 height = frame.height;