From 67fdcb8fa3ef5d7a3fb8bb298b4a07498eda5791 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 29 Nov 2011 14:41:33 +0000 Subject: Fix STR #2779: clang-detected error git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 ++-- src/Fl_x.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 5a9db99bd..4299374b9 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2030,7 +2030,7 @@ void Fl_X::make(Fl_Window* w) wp += 2*bx; hp += 2*by+bt; } - if (w->flags() & Fl_Window::FORCE_POSITION) { + if (w->force_position()) { if (!Fl::grab()) { xp = xwm; yp = ywm; w->x(xp);w->y(yp); @@ -2076,7 +2076,7 @@ void Fl_X::make(Fl_Window* w) [cw setLevel:winlevel]; q_set_window_title(cw, w->label(), w->iconlabel()); - if (!(w->flags() & Fl_Window::FORCE_POSITION)) { + if (!w->force_position()) { if (w->modal()) { [cw center]; } else if (w->non_modal()) { diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 86cb3cafa..46eed2b61 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1671,7 +1671,7 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) if (!win->parent() && !Fl::grab()) { // center windows in case window manager does not do anything: #ifdef FL_CENTER_WINDOWS - if (!(win->flags() & Fl_Widget::FORCE_POSITION)) { + if (!win->force_position()) { win->x(X = scr_x+(scr_w-W)/2); win->y(Y = scr_y+(scr_h-H)/2); } @@ -1885,7 +1885,7 @@ void Fl_X::sendxjunk() { prop[1] = 1|2|16; // MWM_FUNC_ALL | MWM_FUNC_RESIZE | MWM_FUNC_MAXIMIZE } - if (w->flags() & Fl_Widget::FORCE_POSITION) { + if (w->force_position()) { hints->flags |= USPosition; hints->x = w->x(); hints->y = w->y(); -- cgit v1.2.3