Fix STR #2779: clang-detected error

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-11-29 14:41:33 +00:00
parent eab4e1f2d5
commit 67fdcb8fa3
2 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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();