protocols/activation: revert send an invalid token when serial isn't valid (#11505)
This reverts commit d9cf1cb78e.
See discussion in #11505
This commit is contained in:
parent
b329ea8e96
commit
0ed880f3f7
1 changed files with 0 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "XDGActivation.hpp"
|
||||
#include "../managers/TokenManager.hpp"
|
||||
#include "../Compositor.hpp"
|
||||
#include "../managers/SeatManager.hpp"
|
||||
#include "core/Compositor.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
|
|
@ -24,12 +23,6 @@ CXDGActivationToken::CXDGActivationToken(SP<CXdgActivationTokenV1> resource_) :
|
|||
return;
|
||||
}
|
||||
|
||||
if (!g_pSeatManager->serialValid(g_pSeatManager->seatResourceForClient(m_resource->client()), m_serial)) {
|
||||
LOGM(LOG, "serial not found, sending invalid token");
|
||||
m_resource->sendDone("__invalid__");
|
||||
return;
|
||||
}
|
||||
|
||||
m_committed = true;
|
||||
// send done with a new token
|
||||
m_token = g_pTokenManager->registerNewToken({}, std::chrono::months{12});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue