|
|
|
@ -240,7 +240,7 @@ void ScreenGrabDialog::slotPerformGrab()
|
|
|
|
|
Window child;
|
|
|
|
|
uint mask;
|
|
|
|
|
int rootX, rootY, winX, winY;
|
|
|
|
|
XQueryPointer( qt_xdisplay(), qt_xrootwin(), &root, &child,
|
|
|
|
|
XQueryPointer( tqt_xdisplay(), tqt_xrootwin(), &root, &child,
|
|
|
|
|
&rootX, &rootY, &winX, &winY,
|
|
|
|
|
&mask);
|
|
|
|
|
|
|
|
|
@ -248,13 +248,13 @@ void ScreenGrabDialog::slotPerformGrab()
|
|
|
|
|
unsigned int w, h;
|
|
|
|
|
unsigned int border;
|
|
|
|
|
unsigned int depth;
|
|
|
|
|
XGetGeometry( qt_xdisplay(), child, &root, &x, &y,
|
|
|
|
|
XGetGeometry( tqt_xdisplay(), child, &root, &x, &y,
|
|
|
|
|
&w, &h, &border, &depth );
|
|
|
|
|
|
|
|
|
|
m_snapshot = TQPixmap::grabWindow( qt_xrootwin(), x, y, w, h );
|
|
|
|
|
m_snapshot = TQPixmap::grabWindow( tqt_xrootwin(), x, y, w, h );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
m_snapshot = TQPixmap::grabWindow( qt_xrootwin() );
|
|
|
|
|
m_snapshot = TQPixmap::grabWindow( tqt_xrootwin() );
|
|
|
|
|
|
|
|
|
|
if (m_snapshot.isNull())
|
|
|
|
|
{
|
|
|
|
|