lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
194 stars 135 forks source link

labwc/wlroots taskbar: last window still marked as active if all are minimized #2095

Closed stefonarch closed 3 months ago

stefonarch commented 3 months ago
Expected Behavior

No active window in taskbar when desktop is shown

Current Behavior

Last window is marked active when minimized by button or by right click menu. It then needs 2 clicks to raise again in both cases, the first click removes the "active" mark only if minimized by button.

Possible Solution

https://github.com/lxqt/lxqt-panel/pull/2088#issuecomment-2310831103 worked for me:

adding m_pendingState.activated = false; to case ZWLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MINIMIZED: inside LXQtTaskbarWlrootsWindow::zwlr_foreign_toplevel_handle_v1_state in panel/backends/wayland/wlroots/lxqttaskbarwlrwm.cpp