Changeset 5447

Show
Ignore:
Timestamp:
09/29/07 03:42:52 (14 months ago)
Author:
flynd
Message:

Verified that placement is correct on various WM's, including WMaker, without this code so removing it completely.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/mainwin.cpp

    r5446 r5447  
    12081208    licqConf.LoadFile(buf); 
    12091209 
    1210     int x, y; 
    1211 #if 0 // Specific workarounds must not break the stock functionality, ticket 291 
    1212     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     else 
    1222 #endif 
    1223     { 
    1224       x = pos().x(); 
    1225       y = pos().y(); 
    1226     } 
    1227  
    1228     x = x < 0 ? 0 : x; 
    1229     y = y < 0 ? 0 : y; 
    1230  
    12311210    licqConf.SetSection("geometry"); 
    12321211    // 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())); 
    12351214    licqConf.WriteNum("h", (unsigned short)(size().height() < 0 ? 0 : (m_bInMiniMode ? m_nRealHeight : size().height()))); 
    12361215    licqConf.WriteNum("w", (unsigned short)(size().width() < 0 ? 0 : size().width()));