mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
ksnapshot: ungrab the X11 server after pointer is queried in windowUnderCursor() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e52b5a473a
commit
74d989e8d2
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ Window windowUnderCursor( bool includeDecorations = true )
|
|||
XGrabServer( QX11Info::display() );
|
||||
XQueryPointer( QX11Info::display(), QX11Info::appRootWindow(), &root, &child,
|
||||
&rootX, &rootY, &winX, &winY, &mask );
|
||||
XUngrabServer( QX11Info::display() );
|
||||
|
||||
if( child == None ) {
|
||||
child = QX11Info::appRootWindow();
|
||||
|
|
Loading…
Add table
Reference in a new issue