KCM KWinScreenEdges disable widgets if is immutable
ClosedPublic

Authored by crossi on Apr 2 2020, 9:41 AM.

Details

Summary

Same as D28507

Disable screen edge modification, but allow the user to open an edge context menu and see the settings.

To set an edge immutable, just add [$i] right after the entry in ElectricBorders group, although the edges settings are shared between some [Effect-something] group under the key BorderActivateSomething.

Since one entry like BorderActivateSomething lists all edges that use this effect, it doesn't make sense to set it immutable.

Test Plan

In kwinrc, set the ElectricBorders and/or Windows group immutable or any entry.

[ElectricBorders]
BottomLeft[$i]=None
Left=None
Right=None
Top[$i]=None

[Windows][$i]
ElectricBorderCornerRatio=0.29
ElectricBorderDelay=300
ElectricBorderMaximize=false
ElectricBorderTiling=true
ElectricBorders=2

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.
crossi created this revision.Apr 2 2020, 9:41 AM
Restricted Application added a project: KWin. · View Herald TranscriptApr 2 2020, 9:41 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
crossi requested review of this revision.Apr 2 2020, 9:41 AM
crossi edited the summary of this revision. (Show Details)Apr 2 2020, 10:09 AM
crossi edited the test plan for this revision. (Show Details)
crossi added reviewers: ervin, bport, meven, zzag, KWin.
mart accepted this revision.Apr 6 2020, 9:22 AM
This revision is now accepted and ready to land.Apr 6 2020, 9:22 AM
ervin accepted this revision.Apr 7 2020, 7:13 PM
zzag accepted this revision.Apr 16 2020, 10:12 AM
This revision was automatically updated to reflect the committed changes.