src/video/x11/SDL_x11window.c
changeset 5478 6b65ff3cee62
parent 5466 006883d5fa51
child 5481 22dfc3958dc3
     1.1 --- a/src/video/x11/SDL_x11window.c	Fri Mar 11 16:03:23 2011 -0800
     1.2 +++ b/src/video/x11/SDL_x11window.c	Fri Mar 11 16:54:43 2011 -0800
     1.3 @@ -756,27 +756,9 @@
     1.4  {
     1.5      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     1.6      Display *display = data->videodata->display;
     1.7 -    SDL_bool oldstyle_fullscreen;
     1.8      int x, y;
     1.9  
    1.10 -    /* ICCCM2.0-compliant window managers can handle fullscreen windows */
    1.11 -    oldstyle_fullscreen = X11_IsWindowOldFullscreen(_this, window);
    1.12 -
    1.13 -    if (oldstyle_fullscreen
    1.14 -        || SDL_WINDOWPOS_ISCENTERED(window->x)) {
    1.15 -        X11_GetDisplaySize(_this, window, &x, NULL);
    1.16 -        x = (x - window->w) / 2;
    1.17 -    } else {
    1.18 -        x = window->x;
    1.19 -    }
    1.20 -    if (oldstyle_fullscreen
    1.21 -        || SDL_WINDOWPOS_ISCENTERED(window->y)) {
    1.22 -        X11_GetDisplaySize(_this, window, NULL, &y);
    1.23 -        y = (y - window->h) / 2;
    1.24 -    } else {
    1.25 -        y = window->y;
    1.26 -    }
    1.27 -    XMoveWindow(display, data->xwindow, x, y);
    1.28 +    XMoveWindow(display, data->xwindow, window->x, window->y);
    1.29      XFlush(display);
    1.30  }
    1.31