Changeset 5447
- Timestamp:
- 09/29/07 03:42:52 (14 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_qt4/src/mainwin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/mainwin.cpp
r5446 r5447 1208 1208 licqConf.LoadFile(buf); 1209 1209 1210 int x, y;1211 #if 0 // Specific workarounds must not break the stock functionality, ticket 2911212 if(pos().x() < 2 || pos().y() < 2) {1213 // WMaker bug. will investigate...1214 QPoint p = mapToGlobal(QPoint(0, 0));1215 1216 // qDebug("wmaker workaround enabled");1217 1218 x = p.x() - 1 - ( geometry().x() < p.x() ? geometry().x() : 0);1219 y = p.y() - 1 - ( geometry().y() < p.y() ? geometry().y() : 0);1220 }1221 else1222 #endif1223 {1224 x = pos().x();1225 y = pos().y();1226 }1227 1228 x = x < 0 ? 0 : x;1229 y = y < 0 ? 0 : y;1230 1231 1210 licqConf.SetSection("geometry"); 1232 1211 // I'm not sure if we should really test for negative values... 1233 licqConf.WriteNum("x", (unsigned short)x);1234 licqConf.WriteNum("y", (unsigned short)y);1212 licqConf.WriteNum("x", static_cast<short>(x())); 1213 licqConf.WriteNum("y", static_cast<short>(y())); 1235 1214 licqConf.WriteNum("h", (unsigned short)(size().height() < 0 ? 0 : (m_bInMiniMode ? m_nRealHeight : size().height()))); 1236 1215 licqConf.WriteNum("w", (unsigned short)(size().width() < 0 ? 0 : size().width()));
