inputpanel: Do not start a display process while shutting the panel down

The panel is getting destroyed and shouldn't be shown anymore.
This commit is contained in:
Aleix Pol 2022-09-23 16:24:55 +02:00 committed by Xaver Hugl
parent a056ef3f56
commit 95742bf2e5

View file

@ -69,7 +69,7 @@ void InputPanelV1Window::showTopLevel(OutputInterface *output, InputPanelSurface
void InputPanelV1Window::allow()
{
m_allowed = true;
if (m_shouldBeShown && surface()->isMapped()) {
if (m_shouldBeShown && !isZombie() && surface()->isMapped()) {
setReadyForPainting();
reposition();
showClient();
@ -79,7 +79,7 @@ void InputPanelV1Window::allow()
void InputPanelV1Window::show()
{
m_shouldBeShown = true;
if (m_allowed && surface()->isMapped()) {
if (m_allowed && !isZombie() && surface()->isMapped()) {
setReadyForPainting();
reposition();
showClient();