-
Notifications
You must be signed in to change notification settings - Fork 0
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
Jumping desktop focus. #30
Comments
bspwm specific instruction is not working, i think it's a lot of work to maintain that, IMO we should drop that, using windowmap the window get dynamically placed (better) user can specify the placement of the window using.
|
This is sort of fixed but the window is getting resized improperly after vomit, And the toggle window is not resizing to account for others. (Using BSPWM specific recommendations). |
The only thing that is sub optimal is |
What about checking for the current desktop before moving? diff --git a/pidswallow b/pidswallow
index a990855..b377a17 100755
--- a/pidswallow
+++ b/pidswallow
@@ -43,6 +43,7 @@ vomit() {
[ -f "/tmp/swallowed-by-$cwid-desk" ] \
&& desk=$(cat /tmp/swallowed-by-"$cwid"-desk) && \
+ [ "$(xdotool get_desktop_for_window "$pwid")" -ne "$desk" ] && \
xdotool set_desktop_for_window "$pwid" "$desk"
[ -f "/tmp/swallowed-by-$cwid-pos" ] \
&& cpos=$(cat /tmp/swallowed-by-"$cwid"-pos) && \ Edit: a451448 |
I'm not sure I understand heh |
Personally I don't like this approach. My idea of swallowing is that windows should occupy the exact same place as the child that swallowed them. |
What I suggest:
|
Actually that's exactly what I did in a451448 haha |
Focus is jumping from one desktop to another during toggle.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: