Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Monitor_greedyView() #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Monitor_greedyView() #59

wants to merge 1 commit into from

Conversation

dbbnrl
Copy link

@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.
@dbbnrl
Copy link
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.

@joten
Copy link
Collaborator

joten 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.

2 participants