Skip to content

kwin/scripts: Add convergentwindows and switch from kwin maximized mode

Devin Lin requested to merge work/devinlin/plata-convergent into master

@plata this was imported from https://invent.kde.org/plata/convergentwindows, but I'm not sure if perhaps we perhaps make it a dependency of plasma-mobile? It would be nicer to couple them together here though...

Adds support for changing whether windows have window decoration depending on the screen. Currently a heuristic is used where the first screen is assumed to be the phone screen. Also auto maximizes if a window is on the phone screen, but not otherwise.

Problems:

  • We need to remove the setting from kwinrc for existing installs where window decorations and KWin maximize mode is enabled, however I don't know how to best do this programatically
  • We need to enable this KWin script for the Plasma Mobile session always, but I also don't know how to best do this programatically
  • Assuming the first screen as the phone screen could work, but there might be a better way to deal with this (this won't work if we run plasmashell in a window)

Merge request reports

Loading