mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

There is no close button when previewing a window that cannot be closed Change-Id: Ic97f1fdd287fad1c06578e1745d526da61d0088e
23 lines
538 B
C
23 lines
538 B
C
|
|
#ifndef APPSPREVIEWPROVIDER_H
|
|
#define APPSPREVIEWPROVIDER_H
|
|
|
|
#include "previewcontainer.h"
|
|
|
|
static PreviewContainer *PreviewWindow(const WindowInfoMap &infos, const WindowList &allowClose, const Dock::Position dockPos)
|
|
{
|
|
static PreviewContainer *preview;
|
|
if (!preview) {
|
|
preview = new PreviewContainer;
|
|
}
|
|
|
|
preview->disconnect();
|
|
preview->setWindowInfos(infos, allowClose);
|
|
preview->updateSnapshots();
|
|
preview->updateLayoutDirection(dockPos);
|
|
|
|
return preview;
|
|
}
|
|
|
|
#endif /* APPSPREVIEWPROVIDER_H */
|