diff --git a/panel/backends/wayland/lxqttaskbarbackendwayland.cpp b/panel/backends/wayland/lxqttaskbarbackendwayland.cpp index c1b3f28af..4ded124d3 100644 --- a/panel/backends/wayland/lxqttaskbarbackendwayland.cpp +++ b/panel/backends/wayland/lxqttaskbarbackendwayland.cpp @@ -18,46 +18,39 @@ LXQtTaskbarWaylandBackend::LXQtTaskbarWaylandBackend(QObject *parent) * If wayfire/sway/labwc/hyprland/wlroots is in desktopsList, we'll use the wlroots backend. */ QList desktopsList = qgetenv("XDG_CURRENT_DESKTOP").toLower().split(':'); - qDebug() << "--------------> Current desktop" << desktopsList; for( QByteArray desktop: desktopsList ) { if ( desktop == "plasma" || desktop == "kde" || desktop == "kwin_wayland" ) { - qDebug() << "--------------> Using plasma backend"; m_backend = new LXQtTaskbarPlasmaBackend(); break; } else if ( desktop == "wayfire" ) { - qDebug() << "--------------> Using wayfire backend"; m_backend = new LXQtTaskbarWlrootsBackend(); break; } else if ( desktop == "sway" ) { - qDebug() << "--------------> Using sway backend"; m_backend = new LXQtTaskbarWlrootsBackend(); break; } else if ( desktop == "labwc" ) { - qDebug() << "--------------> Using labwc backend"; m_backend = new LXQtTaskbarWlrootsBackend(); break; } else if ( desktop == "hyprland" ) { - qDebug() << "--------------> Using hyprland backend"; m_backend = new LXQtTaskbarWlrootsBackend(); break; } else if ( desktop == "wlroots" ) { - qDebug() << "--------------> Using generic wlroots backend"; m_backend = new LXQtTaskbarWlrootsBackend(); break; } @@ -69,7 +62,6 @@ LXQtTaskbarWaylandBackend::LXQtTaskbarWaylandBackend(QObject *parent) } if ( m_backend == nullptr ) { - qDebug() << "--------------> Using dummy backend. No window management will be done"; } else { diff --git a/panel/backends/wayland/wlroots/lxqttaskbarbackendwlr.cpp b/panel/backends/wayland/wlroots/lxqttaskbarbackendwlr.cpp index 3c5754244..f9af04fa3 100644 --- a/panel/backends/wayland/wlroots/lxqttaskbarbackendwlr.cpp +++ b/panel/backends/wayland/wlroots/lxqttaskbarbackendwlr.cpp @@ -188,14 +188,13 @@ bool LXQtTaskbarWlrootsBackend::setWindowState(WId windowId, LXQtTaskBarWindowSt } case LXQtTaskBarWindowState::Normal: { - /** Restore if maximized/minimized */ - if ( window->windowState.minimized) { - window->unset_minimized(); + if (set) + { + if ( window->windowState.maximized) { + window->unset_maximized(); + } } - if ( window->windowState.maximized) { - window->unset_maximized(); - } break; } @@ -229,7 +228,7 @@ bool LXQtTaskbarWlrootsBackend::isWindowActive(WId windowId) const bool LXQtTaskbarWlrootsBackend::raiseWindow(WId windowId, bool onCurrentWorkSpace) { - Q_UNUSED(onCurrentWorkSpace) //TODO + Q_UNUSED(onCurrentWorkSpace) // Cannot be done on a generic wlroots-based compositor! LXQtTaskbarWlrootsWindow *window = getWindow(windowId); if(!window) diff --git a/panel/lxqtpanelapplication.cpp b/panel/lxqtpanelapplication.cpp index 024ba4c05..2a3f08c36 100644 --- a/panel/lxqtpanelapplication.cpp +++ b/panel/lxqtpanelapplication.cpp @@ -47,12 +47,10 @@ ILXQtTaskbarAbstractBackend *createWMBackend() { if(qGuiApp->nativeInterface()){ - qDebug() << "--------------> X11Application"; return new LXQtTaskbarX11Backend; } else if(qGuiApp->nativeInterface()){ - qDebug() << "--------------> WaylandApplication"; return new LXQtTaskbarWaylandBackend; } diff --git a/plugin-taskbar/lxqttaskbarplugin.cpp b/plugin-taskbar/lxqttaskbarplugin.cpp index fbdd5b305..759e6db46 100644 --- a/plugin-taskbar/lxqttaskbarplugin.cpp +++ b/plugin-taskbar/lxqttaskbarplugin.cpp @@ -37,7 +37,6 @@ LXQtTaskBarPlugin::LXQtTaskBarPlugin(const ILXQtPanelPluginStartupInfo &startupI ILXQtPanelPlugin(startupInfo) { - qDebug() << "--------------> Init plugin taskbar"; mTaskBar = new LXQtTaskBar(this); } diff --git a/plugin-taskbar/lxqttaskbutton.cpp b/plugin-taskbar/lxqttaskbutton.cpp index 851f765bc..c20c0bd92 100644 --- a/plugin-taskbar/lxqttaskbutton.cpp +++ b/plugin-taskbar/lxqttaskbutton.cpp @@ -439,7 +439,8 @@ void LXQtTaskButton::deMaximizeApplication() { mBackend->setWindowState(mWindow, LXQtTaskBarWindowState::Maximized, false); - if(!mBackend->isWindowActive(mWindow)) + /** This guard is unnecessary */ + // if(!mBackend->isWindowActive(mWindow)) mBackend->raiseWindow(mWindow, parentTaskBar()->raiseOnCurrentDesktop()); }