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_x.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_x.cxx') 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