kdeui: initialize variables in KWindowSystem::setOnDesktop()

see the previous commits

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-30 01:35:10 +03:00
parent add566bc21
commit 35541fb02c

View file

@ -532,8 +532,12 @@ void KWindowSystem::setOnDesktop( WId win, int desktop )
init( INFO_BASIC ); init( INFO_BASIC );
QPoint p = desktopToViewport( desktop, false ); QPoint p = desktopToViewport( desktop, false );
Window dummy; Window dummy;
int x, y; int x = 0;
unsigned int w, h, b, dp; int y = 0;
unsigned int w = 0;
unsigned int h = 0;
unsigned int b = 0;
unsigned int dp = 0;
XGetGeometry( QX11Info::display(), win, &dummy, &x, &y, &w, &h, &b, &dp ); XGetGeometry( QX11Info::display(), win, &dummy, &x, &y, &w, &h, &b, &dp );
// get global position // get global position
XTranslateCoordinates( QX11Info::display(), win, QX11Info::appRootWindow(), 0, 0, &x, &y, &dummy ); XTranslateCoordinates( QX11Info::display(), win, QX11Info::appRootWindow(), 0, 0, &x, &y, &dummy );