FLTK logo

STR #2859

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]

STR #2859

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:4 - High, e.g. key functionality not working
Scope:2 - Specific to an operating system
Subsystem:X11
Summary:wait_for_expose sometimes gets incorrectly wedged
Version:1.3-current
Created By:ossman
Assigned To:manolo
Fix Version:1.3-current (SVN: v9699)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 ossman
00:53 Jul 05, 2012
fltk-1.3.x-resize-expose.patch
1k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 ossman
07:59 Jul 04, 2012
You can get a window into the state where it will no longer render any updates, because wait_for_expose is incorrectly set to true.

This happens in Fl_Window::resize() in Fl_x.cxx. The code there assumes that the current width/height is what X11 sees, and enlarging must therefore result in an eventual Expose event.

This is incorrect.

What happens is that the program requests a resize from e.g. 200x200 to 100x100. The window manager refuses, which it indicates by sending a resize back with the original 200x200 size. There will be no Expose events in this case, as the window never actually changed size.

The easy fix is to remove the code that sets wait_for_expose in resize(). It is based on flawed assumptions, so it is currently wrong.
 
 
#2 manolo
08:43 Oct 16, 2012
Fixed in Subversion repository.

Thanks for the fix.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.