Taskbar: Add toggle_show_desktop()

This function is added to separate the desktop toggling functionality
from the "Show Desktop" button in the taskbar and to enable calling this
behaviour via a keyboard shortcut in a later commit.
This commit is contained in:
Olivier De Cannière 2022-06-01 13:40:02 +02:00 committed by Andreas Kling
commit 12682f0bcc
Notes: sideshowbarker 2024-07-17 10:32:49 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -109,6 +109,11 @@ void TaskbarWindow::config_string_did_change(String const& domain, String const&
}
void TaskbarWindow::show_desktop_button_clicked(unsigned)
{
toggle_show_desktop();
}
void TaskbarWindow::toggle_show_desktop()
{
GUI::ConnectionToWindowManagerServer::the().async_toggle_show_desktop();
}