mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-10 08:21:13 -04:00
Merge pull request #359 from reDpz/main
Fix viewcrossmon not respecting Arg.v (target monitor) and cursorwarping
This commit is contained in:
commit
181205df35
1 changed files with 4 additions and 1 deletions
|
|
@ -1423,7 +1423,10 @@ int viewtoright_have_client(const Arg *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int viewcrossmon(const Arg *arg) {
|
int viewcrossmon(const Arg *arg) {
|
||||||
focusmon(arg);
|
// Don't switch monitors if monitor is already focused
|
||||||
|
// This also prevents cursorwarp
|
||||||
|
if (!regex_match(arg->v, selmon->wlr_output->name))
|
||||||
|
focusmon(&(Arg){.v = arg->v, .i = UNDIR});
|
||||||
view_in_mon(arg, true, selmon, true);
|
view_in_mon(arg, true, selmon, true);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue