Skip to content

Commit

Permalink
do not allow minimizing views with toplevel parents
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Jan 10, 2024
1 parent c1a59c1 commit 2e9c946
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/view/toplevel-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ void wf::toplevel_view_interface_t::set_minimized(bool minim)
return;
}

if (this->parent && minim)
{
LOGE("Ignoring a request to minimize a view with a parent, minimize the parent instead!");
return;
}

this->minimized = minim;
wf::scene::set_node_enabled(get_root_node(), !minimized);

Expand Down

0 comments on commit 2e9c946

Please sign in to comment.