Fixed demo application to properly use default settings
This commit is contained in:
@@ -507,17 +507,9 @@ void CFloatingDockContainer::startFloating(const QPoint &DragStartMousePos,
|
||||
d->setState(DragState);
|
||||
d->DragStartMousePosition = DragStartMousePos;
|
||||
#ifdef Q_OS_LINUX
|
||||
// I have not found a way on Linux to display the floating widget behind the
|
||||
// dock overlay. That means if the user drags this floating widget around,
|
||||
// it is always painted in front of the dock overlay and dock overlay cross.
|
||||
// and the user will not see the dock overlay. To work around this issue,
|
||||
// the window opacity is set to 0.6 to make the dock overlay visible
|
||||
// again. If someone has an idea, how to place the dragged floating widget
|
||||
// behind the dock overlay, then a pull request would be welcome.
|
||||
if (DraggingFloatingWidget == DragState)
|
||||
{
|
||||
setAttribute(Qt::WA_X11NetWmWindowTypeDock, true);
|
||||
setWindowOpacity(0.6);
|
||||
d->MouseEventHandler = MouseEventHandler;
|
||||
if (d->MouseEventHandler)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user