Reset QT_WAYLAND_DISABLE_WINDOWDECORATION.

This commit is contained in:
Florian Bruhin 2015-09-16 10:23:21 +02:00
parent f83f4a6a1a
commit 9561b7b02c

View File

@ -420,6 +420,8 @@ def _init_modules(args, crash_handler):
log.init.debug("Misc initialization...")
if config.get('ui', 'hide-wayland-decoration'):
os.environ['QT_WAYLAND_DISABLE_WINDOWDECORATION'] = '1'
else:
os.environ.pop('QT_WAYLAND_DISABLE_WINDOWDECORATION', None)
_maybe_hide_mouse_cursor()
objreg.get('config').changed.connect(_maybe_hide_mouse_cursor)