def get_window_size(self):
def active_window_for_app(app):<EOL><INDENT>with set_app(app):<EOL><INDENT>return self.arrangement.get_active_window()<EOL><DEDENT><DEDENT>active_window = self.arrangement.get_active_window()<EOL>apps = [client_state.app for client_state in self._client_states.values()<EOL>if active_window_for_app(client_state.app) == active_window]<EOL>sizes = [app.output.get_size() for app in apps]<EOL>rows = [s.rows for s in sizes]<EOL>columns = [s.columns for s in sizes]<EOL>if rows and columns:<EOL><INDENT>return Size(rows=min(rows) - (<NUM_LIT:1> if self.enable_status else <NUM_LIT:0>),<EOL>columns=min(columns))<EOL><DEDENT>else:<EOL><INDENT>return Size(rows=<NUM_LIT:20>, columns=<NUM_LIT>)<EOL><DEDENT>
Get the size to be used for the DynamicBody.
This will be the smallest size of all clients.