Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
gnome-settings-daemon
gnome-settings-daemon-touch-screen-switch.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-settings-daemon-touch-screen-switch.patch of Package gnome-settings-daemon
diff --git a/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in b/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in index ed957c6..dc67b61 100644 --- a/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in +++ b/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in @@ -55,5 +55,10 @@ <_summary>If an information message should be displayed when returning from idle sleep.</_summary> <_description>If an information message should be displayed when returning from idle sleep.</_description> </key> + <key name="disable-touch-screen" type="b"> + <default>true</default> + <_summary>Disable touch screen input when screen is off</_summary> + <_description>Disable touch screen input when screen is off</_description> + </key> </schema> </schemalist> diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c index 0ca177d..847e1e6 100644 --- a/plugins/power/gsd-power-manager.c +++ b/plugins/power/gsd-power-manager.c @@ -934,6 +934,9 @@ screen_devices_disable (GsdPowerManager *manager) GdkDeviceManager *device_manager; GList *devices, *l; + if (!g_settings_get_boolean (manager->priv->settings, "disable-touch-screen")) + return; + /* This will be managed by the compositor eventually on X11 too: * https://bugzilla.gnome.org/show_bug.cgi?id=742598 */ @@ -972,6 +975,9 @@ screen_devices_enable (GsdPowerManager *manager) { GList *l, *disabled_devices; + if (!g_settings_get_boolean (manager->priv->settings, "disable-touch-screen")) + return; + if (gnome_settings_is_wayland ()) return;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor