diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 | ||||
| -rw-r--r-- | src/Fl_x.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
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(); |
