More debug

This commit is contained in:
Ximi1970
2024-04-14 14:50:55 +02:00
parent 4f5578461c
commit 5ea763b948
3 changed files with 8 additions and 3 deletions

View File

@@ -399,7 +399,9 @@ void WindowCtrlUnix::updatePositions()
int y1;
int x2;
int y2;
GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2 );
int x3;
int y3;
GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2, &x3, &y3 );
/*
* Update the list?
@@ -422,6 +424,7 @@ void WindowCtrlUnix::updatePositions()
emit signalConsole( QString( "Update pos: %1, %2" ).arg( x ).arg( y ) );
emit signalConsole( QString( "Update pos1: %1, %2" ).arg( x1 ).arg( y1 ) );
emit signalConsole( QString( "Update pos2: %1, %2" ).arg( x2 ).arg( y2 ) );
emit signalConsole( QString( "Update pos3: %1, %2" ).arg( x3 ).arg( y3 ) );
emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) );
//#endif
}

View File

@@ -460,7 +460,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int*
/*
* Get the window position
*/
void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d )
void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d )
{
Display* dsp = (Display*)display;
@@ -503,6 +503,8 @@ void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y
*y1d = y1;
*x2d = x2;
*y2d = y2;
*x3d = xwa.x;
*y3d = xwa.y;
}

View File

@@ -251,7 +251,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int*
* @param pos_x Storage for the x coordinate
* @param pos_y Storage for the y coordinate
*/
void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d );
void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d );
/**
* @brief GetWindowRectangle. Get the window rectangle.