summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-05-29 17:34:57 +0000
committerManolo Gouy <Manolo>2011-05-29 17:34:57 +0000
commit84a025b174245cb5bff052dbc6a896eeb67f0d3a (patch)
treede5f11a77cd33aa8d81d997d90342c9a71990f39
parent493accc9057b38220fac3330fbf78e278fc3fa18 (diff)
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. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_x.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 61b3082b4..dc66f4aeb 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2010,6 +2010,8 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset)
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);