Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KWin KWin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 116
    • Merge requests 116
  • 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
  • Plasma
  • KWinKWin
  • Merge requests
  • !1851

Draft: wayland: add support for PlasmaShellSurface setOutput

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Julius Zint requested to merge juliuszint/kwin:feature-setoutput into master Jan 07, 2022
  • Overview 23
  • Commits 1
  • Pipelines 2
  • Changes 1

The main motivation is to fix the bug, where KRunner is always displayed on the left monitor (427069). Being able to move a window to a different output on wayland is only the first of two steps required to resolve the problem. The second one is the ability to query the active output on wayland.

In total 3 components have to be patched in order to make it possible to set the output for a window.

  1. This MR updates KWayland and with this change, clients are able to send the request.
  2. This MR updates KWayland-Server to emit a signal, if a client sends a request.
  3. This MR updates KWin to listen for this signal and move the client.

I created a small application for testing purposes. Just use git clone https://invent.kde.org/juliuszint/helloqt and checkout the move-to-output branch. If your compiled KWayland library is not at its default location $HOME/kde/build/kwayland, then you will have to adjust the CMakeLists.txt file.

Otherwise it should just compile (TM) and when the button is clicked, the window will be moved onto every output once (delayed by 2 seconds).

Edited Jan 07, 2022 by Julius Zint
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature-setoutput