Blacklist classical indicators on WASM

Use segmented indicators.
Wasm doesn't support top-level windows with translucency, which
is required for the classical indicators

For issue #100
This commit is contained in:
Sergio Martins
2020-11-13 18:17:23 +00:00
parent 4f8c47bfa4
commit 8791870efb

View File

@@ -91,6 +91,11 @@ FloatingWindow *DefaultWidgetFactory::createFloatingWindow(Frame *frame, MainWin
DropIndicatorOverlayInterface *DefaultWidgetFactory::createDropIndicatorOverlay(DropArea *dropArea) const
{
#ifdef Q_OS_WASM
// On WASM windows don't support translucency, which is required for the classic indicators.
return new SegmentedIndicators(dropArea);
#endif
switch (s_dropIndicatorType) {
case DropIndicatorType::Classic:
return new ClassicIndicators(dropArea);