Re: inc/dec workspace
Tuomo Valkonen <[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
On 2008-09-21, Timandahaf <[email protected]> wrote: > -ioncore.get_hook("region_notify_hook"):add(update_workspace) > +local function update_workspace_wrap(reg, how) > + if how ~= "name" then > + return > + end It would be advisable to check that 'reg' is actually a "workspace", i.e. managed by a WScreen, to further optimise the calls to update. (Actually, the iteration using mx_nth in the update is also very inefficient. What mx_nth does is scan a list from the beginning to find the n:th entry. mx_i does iteration over the list.) -- Tuomo