summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
AgeCommit message (Collapse)Author
1999-08-22Changed call_timeouts() and Fl::wait()/wait(double). The wait functions will ↵gustavo
now return immediately (do fl_wait(0,0)) if any timeouts were called in call_timeouts(). Motivation: An event loop like while (work_to_do) { work_some(); Fl::check(); } else { Fl::wait(); } Suppose that a timeout sets the work_to_do flag, which is initially cleared. Fl::wait() will wait for this timeout, return, then expire the timeout and wait for user input. With the fix, it will work as expected. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-27Can draw xpm pixmaps with spaces in the color names (such as the ones inBill Spitzak
/usr/X11/include/X11/icons). Esc closes the modal window, not the window the cursor is in, if a modal window is up. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22FL_KEYBOARD events have the correct x/y when sent to child X windows.Bill Spitzak
Notice that if you worked around this bug by adjusting the x/y yourself you will have to change your code. In addition all events have the correct x/y when sent to the grab() widget. And the code to do all this was simplified a lot. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-07Replaced remaining malloc.h's with stdlib.hBill Spitzak
Added ctype.h to win32 file Patch for Fl_Browser_ looping indefinately git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-24Added Rick's hack for initializing fl_display.Michael R Sweet
fl_call_main() and WinMain are now only compiled in for non-GNU compilers under WIN32 (not needed for Cygwin and friends). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-07Fixed bug in WIN32 fl_elapsed() function - didn't initializeMichael R Sweet
prevclock to valid value [now use GetClockTicks()], and didn't check for newclock < prevclock (which would be the case if no messages have been processed yet). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-06Fixed another flwm crash in Fl_x.cxx (the send_motion pointer mustBill Spitzak
be ignored if the fl_xmousewin is deleted). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23Keypad should produce correct symbols on Brazilian (and any other)Bill Spitzak
keyboard when NumLock is on. Also added some explanatory comments to the source code. Some pointers were not being turned off when widgets were deleted, this caused flwm to crash. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17Fl::add_fd() structures are dynamically allocated so you can listen toBill Spitzak
as many connections as you want (up to the maximum number handled by select()). Fl::remove_fd(fd, when) added. This allows you to remove the read, write, and error callbacks individually. Fl::remove_fd(fd) does Fl::remove_fd(fd,-1). Fl::add_fd() calls Fl::remove_fd(), so it can be used safely to replace callbacks with new ones for the same file descriptor. Fl::add_timeout() also dynamically allocates it's array so there is no limit on the number of pending timeouts. I cut/pasted the changes into the Windoze version but this is UNTESTED! Somebody please do a test compile. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-101. ~Fl_Widget(), Fl_Widget::hide(), and Fl_Widget::deactivate() no longer sendBill Spitzak
FL_LEAVE, FL_RELEASE, or FL_UNFOCUS events to the widget. This seems to be desirable behavior and fixes a crash in flwm. 2. After you show() a window, Fl::damage() should be true and remain true until the window is actually drawn and up to date. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13Fixed fluid bug that caused styles patch to crash when you delete menu item.Bill Spitzak
Changed a comment in Fl.cxx Changed valuators demo to remove code to set value() on some widgets and put the value into the gui box instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-12Fix return value of Fl::check(). This fixes the "cube" demo and possiblyCarl E. Thompson
other programs. -Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-05check() calls flush() after processing events, as requested. This shouldBill Spitzak
make no differece and is I think a safe change for 1.0 and we want this behavior to be consistent for later versions. git-svn-id: file:///fltk/svn/fltk/trunk@372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04Put fl_elapsed() call before loop in Fl::add_timeout().Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03Much better and smaller fix for the lost move events after Fl::grab()Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/trunk@352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03Generates FL_ENTER after grab() is released for whatever widget theBill Spitzak
mouse is over. git-svn-id: file:///fltk/svn/fltk/trunk@351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-26Fixed editor demo redraw bug (actually same fix as somebody else made).Bill Spitzak
Highlight is cleared if any other widget makes an X selection. git-svn-id: file:///fltk/svn/fltk/trunk@345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22fl_elapsed() needs to be called before fl_timeout[] is initialized.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19Added fix from Tom Holroyd to call fl_elapsed() in Fl::add_timeout().Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-29Moved fl_old_shortcut() from Fl_Menu_add.cxx to Fl.cxx so that using aCarl E. Thompson
button in your program doesn't automatically link in a humumgous chunk of menuing code. -CET git-svn-id: file:///fltk/svn/fltk/trunk@256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26Applied a navigation bug fix from Bill.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19Fix from Bill - removed code that was sending extra events.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07Yay, change all copyright notices to be 1998-1999.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07More double-buffering and region code stuff from Bill.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04Fix from Bill to prevent popup menus from generating unknown events.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15Fixed merged Fl.cxx code.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15Merged damage changes into Fl.cxx.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15More focus fixes from Bill.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15Event processing fixes from Bill.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08Damage code consolidation from Gustavo...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21Fixed all the frigging file headings - was missing a $ in the Id string.Michael R Sweet
Applied some damage bit fixes from Bill Spitzak. git-svn-id: file:///fltk/svn/fltk/trunk@28 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19More changes from Bill Spitzak.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19The great heading change - now use standard LGPL header with CVS tags.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@19 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06Applied patches from Bill Spitzak.Michael R Sweet
Fixed all source files with MS-DOS/Windows line termination (CR+LF) instead of standard line termination (LF only). git-svn-id: file:///fltk/svn/fltk/trunk@8 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06Commited Gustavo Hime's NT patches/fixes.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@7 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06Initial revisionMichael R Sweet
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121