Skip to content

Commit

Permalink
bugfix: last_selected should be std::nullopt when unset, not nullptr (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae authored Jan 21, 2025
1 parent a0e718b commit 4ef1b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workspace_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ bool WorkspaceManager::request_focus(uint32_t id)
if (active_screen)
last_selected = active_screen->active();
else
last_selected = nullptr;
last_selected = std::nullopt;

// Note: it is important that this is sent before the workspace
// is activated because 'advise_workspace-active' might remove
Expand Down

0 comments on commit 4ef1b06

Please sign in to comment.