Skip to content

Commit

Permalink
ipc-rules: report min/max size for toplevels
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Apr 3, 2024
1 parent 41d398c commit 1440c1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/single_plugins/ipc-rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,11 @@ class ipc_rules_t : public wf::plugin_interface_t, public wf::per_output_tracker
description["activated"] = toplevel ? toplevel->activated : false;
description["sticky"] = toplevel ? toplevel->sticky : false;
description["wset-index"] = toplevel && toplevel->get_wset() ? toplevel->get_wset()->get_index() : -1;
description["focusable"] = view->is_focusable();
description["min-size"] = wf::ipc::dimensions_to_json(
toplevel ? toplevel->toplevel()->get_min_size() : wf::dimensions_t{0, 0});
description["max-size"] = wf::ipc::dimensions_to_json(
toplevel ? toplevel->toplevel()->get_max_size() : wf::dimensions_t{0, 0});
description["focusable"] = view->is_focusable();
description["type"] = get_view_type(view);

return description;
Expand Down

0 comments on commit 1440c1e

Please sign in to comment.