Removing locks. We need better way to determin if FLTK has compiled in locking support or not.

This commit is contained in:
Sanel Zukan 2012-09-03 13:01:34 +00:00
parent 9eca312821
commit 0ad6617df4

View File

@ -175,11 +175,11 @@ static void show_window(unsigned int id,
px = sw - WINDOWS_PADDING - win->w(); px = sw - WINDOWS_PADDING - win->w();
py = sh - WINDOWS_PADDING - win->h(); py = sh - WINDOWS_PADDING - win->h();
Fl::lock();
/* /*
* iterate through shown windows and find position where to put our one * iterate through shown windows and find position where to put our one
* FIXME: this is quite primitive window position deducing facility * FIXME: this is quite primitive window position deducing facility
*
* TODO: add locking here
*/ */
Fl_Window *wi; Fl_Window *wi;
for(wi = Fl::first_window(); wi; wi = Fl::next_window(wi)) { for(wi = Fl::first_window(); wi; wi = Fl::next_window(wi)) {
@ -193,7 +193,6 @@ static void show_window(unsigned int id,
} }
} }
Fl::unlock();
win->position(px, py); win->position(px, py);
} }