Author: manolo
Date: 2011-05-29 10:34:57 -0700 (Sun, 29 May 2011)
New Revision: 8754
Log:
Fix for STR #2648: when compiz is used, the window's parent is the root window,
not the
title bar-containing window, so we resign printing the window decoration.
Modified:
branches/branch-1.3/src/Fl_x.cxx
Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx 2011-05-29 16:29:09 UTC (rev 8753)
+++ branches/branch-1.3/src/Fl_x.cxx 2011-05-29 17:34:57 UTC (rev 8754)
@@ -2010,6 +2010,8 @@
do_it = (XQueryTree(fl_display, fl_window, &root, &parent, &children, &n) !=
0 &&
XTranslateCoordinates(fl_display, fl_window, parent, 0, 0, &bx, &bt,
&child_win) == True);
if (n) XFree(children);
+ // hack to bypass STR #2648: when compiz is used, bt is assigned a very
high, misleading value
+ if (do_it && bt > 30) do_it = 0;
if (!do_it) {
this->set_current();
this->print_widget(win, x_offset, y_offset);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit