mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00

原来的逻辑为在应用没有打开窗口的时候,需要自动打开一个窗口然后来触发分屏的操作; 根据和产品详细讨论,现该逻辑改为:在应用没有打开窗口的时候,无需触发分屏 Log: Influence: 从任务栏拖动一个没有打开窗口的应用,观察是否打开应用(正常情况下不会打开应用),释放鼠标,观察应用图标是否回到任务栏上 Bug: https://pms.uniontech.com/bug-view-154349.html Change-Id: I6d07097a85912caf15ce63952d6b84225b3aeaad
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
/*
|
|
* Copyright (C) 2022 ~ 2022 Deepin Technology Co., Ltd.
|
|
*
|
|
* Author: donghualin <donghualin@uniontech.com>
|
|
*
|
|
* Maintainer: donghualin <donghualin@uniontech.com>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef SCREENSPLITER_XCB_H
|
|
#define SCREENSPLITER_XCB_H
|
|
|
|
#include "screenspliter.h"
|
|
|
|
#include <QRect>
|
|
|
|
class WindowInfo;
|
|
typedef QMap<quint32, WindowInfo> WindowInfoMap;
|
|
|
|
class ScreenSpliter_Xcb : public ScreenSpliter
|
|
{
|
|
public:
|
|
explicit ScreenSpliter_Xcb(AppItem *appItem, DockEntryInter *entryInter, QObject *parent = nullptr);
|
|
|
|
void startSplit(const QRect &rect) override;
|
|
bool split(ScreenSpliter::SplitDirection direction) override;
|
|
bool suportSplitScreen() override;
|
|
bool releaseSplit() override;
|
|
|
|
private:
|
|
uint32_t direction_x11(ScreenSpliter::SplitDirection direction);
|
|
void showSplitScreenEffect(const QRect &rect, bool visible);
|
|
bool windowSupportSplit(quint32 winId);
|
|
};
|
|
|
|
#endif // SCREENSPLITER_XCB_H
|