summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-05-30 12:33:51 +0000
committerManolo Gouy <Manolo>2011-05-30 12:33:51 +0000
commit18a902ca3169970a39e3c183aece8fe076f0e260 (patch)
tree717f37482dfd076c87593ca258022132e2b9b3b9 /src/Fl_win32.cxx
parent39998a972c3cb873e2fb29bfc1b9532cac45919e (diff)
Fix Fl_Paged_Device::print_window(), Fl_Window::decorated_w() and Fl_Window::decorated_h()
when the window is iconized for all platforms. Also, factorized some duplicated code in src/Fl_x.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index d4530467b..f6fcc6ce5 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1966,7 +1966,7 @@ Window fl_xid_(const Fl_Window *w) {
int Fl_Window::decorated_w()
{
- if (parent() || !shown()) return w();
+ if (!shown() || parent() || !border() || !visible()) return w();
int X, Y, bt, bx, by;
Fl_X::fake_X_wm(this, X, Y, bt, bx, by);
return w() + 2 * bx;
@@ -1974,7 +1974,7 @@ int Fl_Window::decorated_w()
int Fl_Window::decorated_h()
{
- if (this->parent() || !shown()) return h();
+ if (!shown() || parent() || !border() || !visible()) return h();
int X, Y, bt, bx, by;
Fl_X::fake_X_wm(this, X, Y, bt, bx, by);
return h() + bt + 2 * by;
@@ -1982,7 +1982,7 @@ int Fl_Window::decorated_h()
void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset)
{
- if (win->parent() || !win->border()) {
+ if (!win->shown() || win->parent() || !win->border() || !win->visible()) {
this->print_widget(win, x_offset, y_offset);
return;
}