Changeset 5448 for trunk/qt-gui/src/mainwin.cpp
- Timestamp:
- 09/29/07 04:08:39 (14 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/mainwin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/mainwin.cpp
r5355 r5448 1225 1225 licqConf.LoadFile(buf); 1226 1226 1227 int x, y;1228 if(pos().x() < 2 || pos().y() < 2) {1229 // WMaker bug. will investigate...1230 QPoint p = mapToGlobal(QPoint(0, 0));1231 1232 // qDebug("wmaker workaround enabled");1233 1234 x = p.x() - 1 - ( geometry().x() < p.x() ? geometry().x() : 0);1235 y = p.y() - 1 - ( geometry().y() < p.y() ? geometry().y() : 0);1236 }1237 else1238 {1239 x = pos().x();1240 y = pos().y();1241 }1242 1243 x = x < 0 ? 0 : x;1244 y = y < 0 ? 0 : y;1245 1246 1227 licqConf.SetSection("geometry"); 1247 1228 // I'm not sure if we should really test for negative values... 1248 licqConf.WriteNum("x", (unsigned short)x);1249 licqConf.WriteNum("y", (unsigned short)y);1229 licqConf.WriteNum("x", static_cast<short>(x())); 1230 licqConf.WriteNum("y", static_cast<short>(y())); 1250 1231 licqConf.WriteNum("h", (unsigned short)(size().height() < 0 ? 0 : (m_bInMiniMode ? m_nRealHeight : size().height()))); 1251 1232 licqConf.WriteNum("w", (unsigned short)(size().width() < 0 ? 0 : size().width()));
