D28101: [Toplevel] Check info being null

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
broulik created this revision.
broulik added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
broulik requested review of this revision.

REVISION SUMMARY
  There's some X11-reliance in `Toplevel` which is ideally split out but for now let's check for `info` being null.
  For instance, accessing `pid()` on a deleted Wayland client can crash when it's no longer a `XdgShellClient`.

TEST PLAN
  - Had an effect that called `EffectWindow->pid()` in `windowDeleted`. No longer crashes now

REPOSITORY
  R108 KWin

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

AFFECTED FILES
  toplevel.cpp

To: broulik, #kwin
Cc: kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.