Skip to content

Commit

Permalink
Merge pull request #1478 from sddm/work/wayland-and-x11
Browse files Browse the repository at this point in the history
Fix login of Wayland sessions with root Xorg
  • Loading branch information
aleixpol committed Nov 29, 2021
2 parents e8e2a0f + d5b101a commit 0424283
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/daemon/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,12 @@ namespace SDDM {
// last session later, in slotAuthenticationFinished()
m_sessionName = session.fileName();

if (session.type() == Session::WaylandSession && m_displayServerType == X11DisplayServerType) {
// If it's an X11 display server, we'll have an (idling) Xorg process where
// m_terminalId is right now, we need to find another VT
m_terminalId = VirtualTerminal::setUpNewVt();
}

// some information
qDebug() << "Session" << m_sessionName << "selected, command:" << session.exec() << "for VT" << m_terminalId;

Expand Down

0 comments on commit 0424283

Please sign in to comment.