wayland: End the drag properly when user cancels the drag
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "FloatingWindow_p.h"
|
||||
#include "Config.h"
|
||||
#include "indicators/ClassicIndicators_p.h"
|
||||
#include "Utils_p.h"
|
||||
|
||||
#ifdef KDDOCKWIDGETS_QTWIDGETS
|
||||
# include "indicators/ClassicIndicators_p.h"
|
||||
@@ -90,6 +91,12 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user