mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeui: initialize variables in KWindowSystem::setOnDesktop()
see the previous commits Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
add566bc21
commit
35541fb02c
1 changed files with 6 additions and 2 deletions
|
@ -532,8 +532,12 @@ void KWindowSystem::setOnDesktop( WId win, int desktop )
|
|||
init( INFO_BASIC );
|
||||
QPoint p = desktopToViewport( desktop, false );
|
||||
Window dummy;
|
||||
int x, y;
|
||||
unsigned int w, h, b, dp;
|
||||
int x = 0;
|
||||
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 );
|
||||
// get global position
|
||||
XTranslateCoordinates( QX11Info::display(), win, QX11Info::appRootWindow(), 0, 0, &x, &y, &dummy );
|
||||
|
|
Loading…
Add table
Reference in a new issue