-
if pertagview(&((Arg) { .ui = newtagset }));
arrange(c->mon); instead of view(&((Arg) { .ui = newtagset })); but it actually doesn't switch to tag automatically. Is it a design or a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
bakkeby
May 20, 2023
Replies: 1 comment 4 replies
-
If in your client rules you say that a window (let's say firefox) open on tag 8, then it will only change the view to tag 8 when that window opens if the rule includes The general principle of the switchtag patch is identical to: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have had a chance to test this now and yes I think it is a bug. I don't remember the reasoning for using pertagview here, but I have probably missed this due to also using the focusonnetactive patch.
I'll change this to just view for now.
In general it is bad design to change the view in the applyrules function (it is a hack basically) - that should really just apply rules to a client and not act upon them. I think there are some edge cases where this changes the view when it shouldn't. For example let's say that the user is on tag 3 and starts firefox in a terminal window. The browser has a client rule saying that it should be placed on tag 8 and that the view should change to that whe…