Wayland: Support classical indicators too

The Indicator Window is top-level, but on Wayland that can't do,
as we have no way to position it. So parent it. The indicators
are now under the window being dragged, but that's no so bad, as it's
smi-transparent, so you still see the indicator.
This commit is contained in:
Sergio Martins
2020-10-17 10:56:30 +01:00
parent ba04c70d5a
commit 5872c2fbe3
4 changed files with 21 additions and 10 deletions

View File

@@ -91,12 +91,6 @@ FloatingWindow *DefaultWidgetFactory::createFloatingWindow(Frame *frame, MainWin
DropIndicatorOverlayInterface *DefaultWidgetFactory::createDropIndicatorOverlay(DropArea *dropArea) const
{
if (isWayland() && s_dropIndicatorType == DropIndicatorType::Classic) {
qWarning() << Q_FUNC_INFO << "Classical indicators aren't supported on Wayland yet."
<< "Falling back to Segmented Indicators";
s_dropIndicatorType = DropIndicatorType::Segmented;
}
switch (s_dropIndicatorType) {
case DropIndicatorType::Classic:
return new ClassicIndicators(dropArea);