summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndreas Brandner <Andreas.Brandner@cib.de>2017-10-20 17:06:13 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-10-22 19:22:23 +0200
commit7b2f4b328c68513429657520eca8a8836717c4ec (patch)
tree343567d887588b515f18473103c4f85d0117afa9 /vcl
parent2fa424f40a185eb43d862a29abce07345695fcf3 (diff)
Prevent gnome-shell f/ showing 'unresponsive app' during debug
LibreOffice advertises NET_WM_PING atom, so mutter rightfully warns of an unresponsive application during debugging. Hack that out unconditionally for dbg_util builds, as per https://bugzilla.redhat.com/show_bug.cgi?id=981149 upstream refuses to make this configurable in any way. Change-Id: I12edbb49a067ad20903ca9b62557ee02c90c8a6e Reviewed-on: https://gerrit.libreoffice.org/43618 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/window/salframe.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index e2eb2ee2d237..03ed240db5b9 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -689,8 +689,12 @@ void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen
Atom a[3];
int n = 0;
a[n++] = pDisplay_->getWMAdaptor()->getAtom( WMAdaptor::WM_DELETE_WINDOW );
+
+#ifndef DBG_UTIL
if( pDisplay_->getWMAdaptor()->getAtom( WMAdaptor::NET_WM_PING ) )
a[n++] = pDisplay_->getWMAdaptor()->getAtom( WMAdaptor::NET_WM_PING );
+#endif
+
if( (nSalFrameStyle & SalFrameStyleFlags::OWNERDRAWDECORATION) )
a[n++] = pDisplay_->getWMAdaptor()->getAtom( WMAdaptor::WM_TAKE_FOCUS );
XSetWMProtocols( GetXDisplay(), GetShellWindow(), a, n );