Browse Source

Don't forget the window manager hint

rdb 16 years ago
parent
commit
264c603608
1 changed files with 5 additions and 8 deletions
  1. 5 8
      panda/src/x11display/x11GraphicsWindow.cxx

+ 5 - 8
panda/src/x11display/x11GraphicsWindow.cxx

@@ -480,15 +480,13 @@ set_properties_now(WindowProperties &properties) {
           << "Videocard has no supported display resolutions at specified res ("
           << "Videocard has no supported display resolutions at specified res ("
           << reqsizex << " x " << reqsizey <<")\n";
           << reqsizex << " x " << reqsizey <<")\n";
         _orig_size_id = -1;
         _orig_size_id = -1;
-      }
-      if (new_size_id != _orig_size_id) {
-        XRRSetScreenConfig(_display, conf, x11_pipe->get_root(), new_size_id, _orig_rotation, CurrentTime);
-        _properties.set_fullscreen(true);
-        properties.clear_fullscreen();
       } else {
       } else {
-        _orig_size_id = -1;
+        if (new_size_id != _orig_size_id) {
+          XRRSetScreenConfig(_display, conf, x11_pipe->get_root(), new_size_id, _orig_rotation, CurrentTime);
+        } else {
+          _orig_size_id = -1;
+        }
         _properties.set_fullscreen(true);
         _properties.set_fullscreen(true);
-        properties.clear_fullscreen();
       }
       }
 #else
 #else
       // If we don't have Xrandr support, we fake the fullscreen
       // If we don't have Xrandr support, we fake the fullscreen
@@ -506,7 +504,6 @@ set_properties_now(WindowProperties &properties) {
         _orig_size_id = -1;
         _orig_size_id = -1;
       }
       }
       _properties.set_fullscreen(false);
       _properties.set_fullscreen(false);
-      properties.clear_fullscreen();
 #endif
 #endif
     }
     }
   }
   }