Hi,

I've a problem with fvwm2 window positioning when using Qt4 in fvwm2. It works 
fine with KDE. You can reproduce it with the attached example. You can compile 
it with the following steps:

- create a subdir 'example'
- place main.cpp in there
- execute 'qmake -project'
- then 'qmake'
- and then 'make'

When you start the resulting executable without an argument and then with an 
argument (doesn't matter what you give as argument) you can see that the 
resulting window position differs.
It looks like when the window is moved before it gets shown the windeco isn't 
took into account which leads to a displacement in the y-axis.

I'm using the latest official release (2.5.31, also tested with official 
2.5.26 package from openSUSE). I can also do some debugging by myself if 
someone can point me into the correct direction.


Thx,
Christian Ehrlicher
#include <QApplication>
#include <QLabel>

int main(int argc, char** argv)
{
  QApplication app(argc, argv);

  QLabel *lbl = new QLabel("Hello FVWM2");
  if(app.arguments().count() > 1) {
    lbl->setVisible(true);
    lbl->move(100,100);
  } else {
    lbl->move(100,100);
    lbl->setVisible(true);
  }
  return app.exec();
}

Reply via email to