Mercurial > libervia-desktop-kivy
changeset 285:3f7e227aab00
core: disable multitouch emulation with mouse
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 Mar 2019 22:22:51 +0100 |
parents | ca4daced4638 |
children | 4772ba26623f |
files | cagou/core/cagou_main.py |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/core/cagou_main.py Wed Mar 27 22:22:51 2019 +0100 @@ -18,6 +18,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +import os.path +import glob +import sys from sat.core.i18n import _ from . import kivy_hack kivy_hack.do_hack() @@ -58,18 +61,16 @@ from kivy.core.window import Window from kivy.animation import Animation from kivy.metrics import dp +from kivy import utils as kivy_utils +from kivy.config import Config as KivyConfig from cagou_widget import CagouWidget from . import widgets_handler from .common import IconButton from . import menu from . import dialog from importlib import import_module -import os.path -import glob import cagou.plugins import cagou.kv -from kivy import utils as kivy_utils -import sys try: from plyer import notification except ImportError: @@ -94,6 +95,8 @@ # we want white background by default Window.clearcolor = (1, 1, 1, 1) +# we don't want multi-touch emulation with mouse +KivyConfig.set('input', 'mouse', 'mouse,disable_multitouch') class NotifsIcon(IconButton):