D6591: XdgV6 - Kwin side

Martin Flöser noreply at phabricator.kde.org
Sat Sep 9 07:04:20 UTC 2017


graesslin requested changes to this revision.
graesslin added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> mart wrote in shell_client.cpp:608-609
> the close is actually beaing done at line 244: at the pongReceived (if the ping reason was closewindow, then it closes it there)

That logic I don't understand: why do we ping to close? Why a roundtrip to the app, when all we want to do is close it? Just send it a close?

> shell_client.cpp:894-898
> +    if (m_xdgShellSurface && rules()->checkAcceptFocus(wantsInput())) {
> +        const qint32 pingSerial = static_cast<XdgShellInterface *>(m_xdgShellSurface->global())->ping(m_xdgShellSurface);
> +        m_pingSerials.insert(pingSerial, FocusWindow);
>          setActive(true);
>      }

This breaks the existing code: the setActive(true) is now only done for xdg shell surfaces, not for wl_shell surfaces.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D6591

To: davidedmundson, #plasma, graesslin, mart
Cc: mart, graesslin, kwin, plasma-devel, #kwin, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170909/95b4401a/attachment-0001.html>


More information about the Plasma-devel mailing list