def get_window_size(self):
        """
        Get the size to be used for the DynamicBody.
        This will be the smallest size of all clients.
        """
        def active_window_for_app(app):
            with set_app(app):
                return self.arrangement.get_active_window()

        active_window = self.arrangement.get_active_window()

        # Get sizes for connections watching the same window.
        apps = [client_state.app for client_state in self._client_states.values()
                if active_window_for_app(client_state.app) == active_window]
        sizes = [app.output.get_size() for app in apps]

        rows = [s.rows for s in sizes]
        columns = [s.columns for s in sizes]

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