1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

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
parent 6c202ee4a9
commit 12682f0bcc
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();
}