mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-07-05 22:19:41 +02:00
More debug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user