| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #2260
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | OpenGL |
Summary: | OpenGL windows in Fl_Tabs don't hide when tabs are switched (OS X only) |
Version: | 1.3-current |
Created By: | AlbrechtS |
Assigned To: | matt |
Fix Version: | 1.3-current (SVN: v9264) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | AlbrechtS 06:38 Sep 22, 2009 |
| OpenGL subwindows that are embedded in Fl_Tabs widgets don't hide correctly, when tabs are switched on Mac OS X. It has been observed that it works okay on Windows and Linux though.
Please see the discussion of the problem at: <http://www.fltk.org/newsgroups.php?gfltk.general+Q%22FLTK%20Tab%20switching+not+hiding+GL+context%22>
Greg provided a demo program in: <http://www.fltk.org/newsgroups.php?gfltk.general+v:29299>
I attached this demo program as gl_tabs.cxx.
The effect can be seen best when resizing the window after switching tabs. | |
|
#2 | matt 09:29 Nov 14, 2010 |
| Fixed in Subversion repository. | |
|
#3 | greg.ercolano 22:42 Mar 02, 2012 |
| Reopening: this is still happening in svn current. See: http://fltk.org/newsgroups.php?gfltk.bugs+v:11610 | |
|
#4 | greg.ercolano 23:06 Mar 02, 2012 |
| Hmm, seems the problem was re-introduced in r8653 when Manolo commented out Matt's fix with /* */'s: http://fltk.org/newsgroups.php?s1+gfltk.commit+v1+T+Qr8653
Manolo's comments say this was commented out because:
"On Mac OS, FL_HIDE is now sent when a window is minimized or the application is hidden. The context removal on Fl_Gl_Window::handle() destroyed the GL colors when the window is remapped."
Perhaps Manolo can weigh in on this, as I'm not familiar with the problem he was fixing. (I'm not sure what GL colors he's referring to)
Rob: your message re-triggered this reopen: Assuming the issue Manolo describes above doesn't affect you, perhaps try removing the /* */'s that r8653 added. So in other words, in the handle() method of Fl_Gl_Window.cxx:
BEFORE: /*if (event==FL_HIDE) { AFTER: if (event==FL_HIDE) {
BEFORE: }*/ AFTER: } | |
|
#5 | ramcdona 19:09 Mar 03, 2012 |
| Greg,
I removed the comment from 1.3.0, and my application behaved as expected.
Rob | |
|
#6 | manolo 02:43 Mar 04, 2012 |
| Rob, Could you, please, apply the small patch attached here under the name STR2260.fix, and confirm whether it solves the openGL-in-Fl_Tabs issue? Thanks. | |
|
#7 | ramcdona 18:51 Mar 04, 2012 |
| I applied the patch, it appears to work as it should for my application.
Thanks,
Rob | |
|
#8 | manolo 00:54 Mar 05, 2012 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |