mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-06 23:55:39 +02:00
Add debug again
This commit is contained in:
@@ -389,7 +389,11 @@ void WindowCtrlUnix::updatePositions()
|
||||
*/
|
||||
int x;
|
||||
int y;
|
||||
GetWindowPosition( m_display, window, &x, &y );
|
||||
int x1;
|
||||
int y1;
|
||||
int x2;
|
||||
int y2;
|
||||
GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2 );
|
||||
|
||||
/*
|
||||
* Update the list?
|
||||
@@ -408,6 +412,8 @@ void WindowCtrlUnix::updatePositions()
|
||||
|
||||
//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS
|
||||
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 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 )
|
||||
void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d )
|
||||
{
|
||||
Display* dsp = (Display*)display;
|
||||
|
||||
@@ -498,6 +498,11 @@ void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y
|
||||
|
||||
*pos_x = x - xwa.x;
|
||||
*pos_y = y - xwa.y;
|
||||
|
||||
*x1d = x1;
|
||||
*y1d = y1;
|
||||
*x2d = x2;
|
||||
*y2d = y2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 );
|
||||
void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d );
|
||||
|
||||
/**
|
||||
* @brief GetWindowRectangle. Get the window rectangle.
|
||||
|
||||
Reference in New Issue
Block a user