Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDE Portal for XDG Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KDE Portal for XDG Desktop
  • Merge requests
  • !33

ScreenCast: Inhibit notifications when screen casting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kai Uwe Broulik requested to merge work/kbroulik/noti-dnd-screencast into master Dec 17, 2020
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 5

Part of https://phabricator.kde.org/T13570

This prevents potentially unwanted messages to pop up while screen casting.

A user can overrule this and re-enable notifications any time by unchecking the do not disturb checkbox in notification applet.

This is Wayland-only. On X I think this is a lost cause since any app can just grab the screen. Most apps have some sort of control panel that is visible while recording, but they either have poor metadata or are override redirect and not managed by KWin. While I did a PoC patch for a "do not disturb" window rule and KWin scripting interface, I don't think this is a reliable enough solution... especially since Wayland gives us a proper one.

Screenshot_20201217_155757

TODO:

  • The portal seems to leak the Session when the client doesn't properly close() it. Am I not understanding correctly how this is supposed to work, or is this a bug? Can be easily reproduced with https://invent.kde.org/libraries/xdg-portal-test-kde by starting a screen share and then just closing the window.

@grulich @vkrause @davidedmundson

Edited Apr 14, 2021 by Kai Uwe Broulik
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/kbroulik/noti-dnd-screencast