|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#include <kconfig.h>
|
|
|
|
|
#include <kurlcombobox.h>
|
|
|
|
|
#ifdef USE_KWIN
|
|
|
|
|
#include <kwin.h>
|
|
|
|
|
#include <twin.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
#endif
|
|
|
|
@ -485,14 +485,14 @@ void KDialogDClient::initDialog(const TQString &caption, KDialogBase *d, unsigne
|
|
|
|
|
#else
|
|
|
|
|
XWindowAttributes attr;
|
|
|
|
|
int rx, ry;
|
|
|
|
|
Window junkwin;
|
|
|
|
|
Window juntwin;
|
|
|
|
|
|
|
|
|
|
XSetTransientForHint(qt_xdisplay(), itsDlg->winId(), xid);
|
|
|
|
|
if(XGetWindowAttributes(qt_xdisplay(), xid, &attr))
|
|
|
|
|
{
|
|
|
|
|
XTranslateCoordinates(qt_xdisplay(), xid, attr.root,
|
|
|
|
|
-attr.border_width, -16,
|
|
|
|
|
&rx, &ry, &junkwin);
|
|
|
|
|
&rx, &ry, &juntwin);
|
|
|
|
|
|
|
|
|
|
rx=(rx+(attr.width/2))-(itsDlg->width()/2);
|
|
|
|
|
if(rx<0)
|
|
|
|
|