From 84a025b174245cb5bff052dbc6a896eeb67f0d3a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 29 May 2011 17:34:57 +0000 Subject: 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 --- src/Fl_x.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3