Disable left touch edge by default
authorNate Graham <nate@kde.org>
Wed, 18 Nov 2020 18:11:36 +0000 (11:11 -0700)
committerNorbert Preining <norbert@preining.info>
Wed, 6 Jan 2021 14:50:52 +0000 (14:50 +0000)
Origin: upstream, https://invent.kde.org/plasma/kwin/commit/3df7985570c748cc47362de9bbae0eb580f8f839

On X11, it creates a dead pixel on the left edge which interferes with
left panels, the left-nost widget on bottom and top panels, and scroll
events on the left-most pixel in various apps.

It works properly on Wayland, but unfortunately turning it off by
default only on X11 but not Wayland is not easily doable. So let's turn
it off by default everywhere.

BUG: 387775
FIXED-IN: 5.21

Gbp-Pq: Name fix-left-edge-dead-pixel.patch

kcmkwin/kwinscreenedges/kwintouchscreensettings.kcfg
tabbox/tabbox.cpp

index 49a253edc4d337aa8c0307f44ff5e23130fffb5d..feca5cb0cf2f9cec136e3924e0168dda7f833c1d 100644 (file)
@@ -47,7 +47,7 @@
     </group>
     <group name="TabBox">
         <entry name="TouchBorderActivateTabBox" key="TouchBorderActivate" type="IntList">
-            <default>ElectricLeft</default>
+            <default>ElectricNone</default>
         </entry>
         <entry key="TouchBorderAlternativeActivate" type="IntList">
             <default>ElectricNone</default>
index 5d54f023ea0c877471a68324e4702f28bd22d498..9bbb8d0c7fa0eac457622faa126c9240a834c8e5 100644 (file)
@@ -782,7 +782,7 @@ void TabBox::reconfigure()
             actions.insert(ElectricBorder(i), a);
         }
     };
-    touchConfig(QStringLiteral("TouchBorderActivate"), m_touchActivate, TabBoxWindowsMode, QStringList{QString::number(int(ElectricLeft))});
+    touchConfig(QStringLiteral("TouchBorderActivate"), m_touchActivate, TabBoxWindowsMode);
     touchConfig(QStringLiteral("TouchBorderAlternativeActivate"), m_touchAlternativeActivate, TabBoxWindowsAlternativeMode);
 }