Hello all,

is anybody running Licq in GNOME? I do so (FC3, GNOME 2.8.0) and see that
licq main window's geometry is altered each time I open it. Its origin
position is shifted by 1 pixel to the left and to the top.

I'm asking this to know if other people are experiencing this issue w/ GNOME,
FC3+GNOME or other conditions. I suspect a variable window border size issued
from the GNOME theme that would not be included in the geometry calculation
when licq opens.

The attached trivial patch works-for-me (tm) but obviously would break the
geometry restoration for the ones who don't have the problem since it uses
hard-coded values.


Regards,

--
wwp
Index: qt-gui/src/mainwin.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.cpp,v
retrieving revision 1.367
diff -u -1 -b -p -r1.367 mainwin.cpp
--- qt-gui/src/mainwin.cpp      18 Jul 2005 11:40:35 -0000      1.367
+++ qt-gui/src/mainwin.cpp      8 Sep 2005 13:34:24 -0000
@@ -1218,4 +1218,4 @@ void CMainWindow::closeEvent( QCloseEven
 
-      x = p.x() - 1 - ( geometry().x() < p.x() ? geometry().x() : 0);
-      y = p.y() - 1 - ( geometry().y() < p.y() ? geometry().y() : 0);
+      x = p.x() - ( geometry().x() < p.x() ? geometry().x() : 0);
+      y = p.y() - ( geometry().y() < p.y() ? geometry().y() : 0);
     }

Reply via email to