Diffusion KWin 7274aed544aa

Fix VirtualDesktopManager::createVirtualDesktop

Authored by zzag on Jan 17 2019, 9:12 PM.

Description

Fix VirtualDesktopManager::createVirtualDesktop

Summary:
Currently, there are several issues with
VirtualDesktopManager::createVirtualDesktop:

(a) The method expects the number parameter to be in range [1, count + 1],

but we pass [0, count];

(b) It doesn't correctly update X11 desktop numbers.

This change tries to address all previously mentioned issues.

BUG: 403312
FIXED-IN: 5.15.0

Test Plan: No longer able to reproduce bug 403312.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, hein, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D18328

Details

Committed
zzagJan 21 2019, 6:07 PM
Reviewer
KWin
Differential Revision
D18328: Fix VirtualDesktopManager::createVirtualDesktop
Parents
R108:fbb30bb863cf: Delete names of removed desktops from kwinrc
Branches
Unknown
Tags
Unknown