Skip to content

Add Monitor_greedyView()#59

Open
dbbnrl wants to merge 1 commit intofuhsjr00:masterfrom
dbbnrl:master
Open

Add Monitor_greedyView()#59
dbbnrl wants to merge 1 commit intofuhsjr00:masterfrom
dbbnrl:master

Conversation

@dbbnrl
Copy link
Copy Markdown

@dbbnrl dbbnrl commented Aug 4, 2015

This is a hack to emulate XMonad's greedyView function.

It is similar to Monitor_activateView() but it ensures that there is
only ever one copy of a view (instead of one copy per monitor). When we
switch to view X using Monitor_greedyView(), all windows from view X on
all monitors are moved to view X on the active monitor.

If the view we're switching to is currently visible on another monitor,
they are swapped.

This is a hack to emulate XMonad's greedyView function.

It is similar to Monitor_activateView() but it ensures that there is
only ever one copy of a view (instead of one copy per monitor).  When we
switch to view X using Monitor_greedyView(), all windows from view X on
all monitors are moved to view X on the active monitor.

If the view we're switching to is currently visible on another monitor,
they are swapped.
@ghost ghost mentioned this pull request Jan 25, 2018
@dbbnrl
Copy link
Copy Markdown
Author

dbbnrl commented Feb 9, 2018

I notice there has been a bit of activity here lately, including some discussion of this PR. I have been using it (old version of bug.n with this PR applied) for several years now. If there is interest in reviving this idea, I'd be happy to spend some time getting this PR back into a usable state with the latest code. If the maintainers would rather not incorporate this feature, I totally understand and I won't bother fixing up the code.

@ghost
Copy link
Copy Markdown

ghost commented Feb 9, 2018

I rather like the idea; it is one of the few, which can be added to bug.n without redesigning the whole view-monitor-model. Therefor I would be glad to incorporate this feature.
Currently I do not have much spare time and therefor will not mess up the code as before ;-) The code base for the pr will be stable for quite a while, giving you enough time, I hope, to adjust your code.

In any case, thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant