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

make warp (banish-cursorwarp) work with the togglescratch function (renamedscratchpads) #75

Open
adetabrani opened this issue Nov 24, 2023 · 7 comments

Comments

@adetabrani
Copy link

simplescreenrecorder.webm

hi bak, how to make warp work with the togglescratch function? I tried adding the 'warp(c)' function call inside the togglescratch function, but it always ended up crashing 😂

@bakkeby
Copy link
Owner

bakkeby commented Nov 24, 2023

Presumably you only want to call warp when the client is revealed?

@adetabrani
Copy link
Author

yes, because of the current behavior I have to always refocus when the scratchpad window is toggled.

I want when I toggle scratchpad, the cursor automatically move to the scratchpad window, but I'm not sure what if there is more than 1 scratchpad window being managed, where should the cursor be located?

@adetabrani
Copy link
Author

is there any feedback regarding this issue?

@bakkeby
Copy link
Owner

bakkeby commented Dec 1, 2023

Have you given any more thought into your last question?

I'm not sure what if there is more than 1 scratchpad window being managed, where should the cursor be located?

If it were up to you and there were two scratchpad windows toggled together - where would you want the mouse cursor to warp to (if at all)?

@adetabrani
Copy link
Author

adetabrani commented Dec 1, 2023

thanks for the feedback, warp to the last focused scratchpad window (before hiding), to be honest I often use just one window as a scratchpad

@bakkeby
Copy link
Owner

bakkeby commented Dec 2, 2023

Have you considered how the warp patch works for non-scratchpad clients? Does the mouse cursor stay with e.g. the last window spawned?

@adetabrani
Copy link
Author

ah I almost forgot about that, maybe instead we can warp to the first stack on the scratchpad window (if more than 1 scratchpad window)? honestly I rarely set more than 1 scratchpad window, so I think at least warp should be able to work first for one scratchpad window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants