Kaydet (Commit) 7b2f4b32 authored tarafından Andreas Brandner's avatar Andreas Brandner Kaydeden (comit) Thorsten Behrens

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/43618Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 2fa424f4
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment