FLTK logo

STR #1990

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 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1990

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:2 - Specific to an operating system
Summary:Support for multiple visuals inside an application
Created By:ydroneaud
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size  
#1 ydroneaud
07:04 Jun 26, 2008

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
#1 ydroneaud
07:04 Jun 26, 2008
Related to the problem reported in message <1213980775.9438.27.camel@iago.mandriva.com>
Using X11 Composite extension with fltk-2.0


To fix my problem, I tried to do something uglier than using a global visual: let each window have it own context: a visual, a colormap and a graphic context. Since fltk use global variables to store those data, a lot of code need to be adapted.

The patch provided do the following things:

- renamed xvisual to xvisualinfo and gc to xgc
  (not really useful change, comestic but broke API).
- XDBE is now enable per window
- per window XVisualInfo, Colormap, GC.

At the end, I'm able to run the test programs, and my own program are able to use different visuals with window created by FLTK.

There are many issues added by the patch and it's not really the good way to fix my problem, but it could be a way to improve FLTK 2.0 and a way for me to discover the internals of the library..

Return to Bugs & Features | Post Text | Post File ]


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'.