fb_backend_qpainter_backend: Use logind to determine if the session is active.
ClosedPublic

Authored by nerdopolist on Dec 31 2017, 6:21 AM.

Details

Summary

TTYs are only available for seat0, so when starting a framebuffer kwin on seat1, it never draws, because drawing is always suspended, because it is being treated as not active

Test Plan

The framebuffer backend draws on seat1, and /dev/fb1 and when I switch back to my Weston greeter, (when it's also using the frame buffer,) it doesn't try to draw on top of it.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nerdopolist created this revision.Dec 31 2017, 6:21 AM
Restricted Application added a subscriber: kwin. · View Herald TranscriptDec 31 2017, 6:21 AM
nerdopolist requested review of this revision.Dec 31 2017, 6:21 AM

@nerdopolist Please rebase on latest master and update authorship information on Phab:

git fetch
git checkout 50b948134c81
arc patch D9574
git rebase origin/master
# Check if it still compiles
arc diff

@graesslin Friendly ping to review the code afterwards;)

graesslin accepted this revision.Apr 22 2018, 3:56 PM
This revision is now accepted and ready to land.Apr 22 2018, 3:56 PM

Thanks for merging my other patches! What does it mean when one is accepted, but not merged though? Do I need to rebase this one?

Thanks for merging my other patches! What does it mean when one is accepted, but not merged though? Do I need to rebase this one?

Just means someone hasn't merged it yet and needs to. I'll do it.

This revision was automatically updated to reflect the committed changes.