mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Fixed Linux bug in DockFocusController.cpp
This commit is contained in:
parent
89aa3d5251
commit
48e79f12a7
@ -168,21 +168,19 @@ void DockFocusControllerPrivate::updateDockWidgetFocus(CDockWidget* DockWidget)
|
|||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
// This code is required for styling the floating widget titlebar for linux
|
// This code is required for styling the floating widget titlebar for linux
|
||||||
// depending on the current focus state
|
// depending on the current focus state
|
||||||
if (FloatingWidget == NewFloatingWidget)
|
if (FloatingWidget != NewFloatingWidget)
|
||||||
{
|
{
|
||||||
return;
|
if (FloatingWidget)
|
||||||
}
|
{
|
||||||
|
updateFloatingWidgetFocusStyle(FloatingWidget, false);
|
||||||
|
}
|
||||||
|
FloatingWidget = NewFloatingWidget;
|
||||||
|
|
||||||
if (FloatingWidget)
|
if (FloatingWidget)
|
||||||
{
|
{
|
||||||
updateFloatingWidgetFocusStyle(FloatingWidget, false);
|
updateFloatingWidgetFocusStyle(FloatingWidget, true);
|
||||||
}
|
}
|
||||||
FloatingWidget = NewFloatingWidget;
|
}
|
||||||
|
|
||||||
if (FloatingWidget)
|
|
||||||
{
|
|
||||||
updateFloatingWidgetFocusStyle(FloatingWidget, true);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (old == DockWidget && !ForceFocusChangedSignal)
|
if (old == DockWidget && !ForceFocusChangedSignal)
|
||||||
|
Loading…
Reference in New Issue
Block a user