-
Notifications
You must be signed in to change notification settings - Fork 44
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
Issues with tofi on river and dual monitor setup #173
Comments
I'm having the problem exactly as originally described. Version |
This is a quick workaround for the issue: diff --git a/src/main.c b/src/main.c
index e91838f..b2cd429 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1576,7 +1576,7 @@ int main(int argc, char *argv[])
tofi.window.zwlr_layer_surface = zwlr_layer_shell_v1_get_layer_surface(
tofi.zwlr_layer_shell,
tofi.window.surface.wl_surface,
- wl_output,
+ nullptr,
ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY,
"launcher");
zwlr_layer_surface_v1_set_keyboard_interactivity( It might be nice to have a preference to disable automatic output selection. |
Can the maintainer actually fix this? It's been months |
Pending a fix, the kludge I've been using relies on setting the First, add this line to the Tofi configuration:
Then execute this command ( sed --in-place "s/output =.*/output = $(swaymsg --type get_outputs | jq '.[] | select(.focused).name')/" ~/.config/tofi/config && tofi-run | xargs swaymsg exec -- |
I noticed this issue and have been a bit more annoyed this week. It seems like #189 fixes the issue on my end. |
Didn't work for me on hyprland with hyprctl dispatch instead of swaymsg |
Are you executing the command before Tofi on each invocation? E.g.:
|
Using river, if I launch
tofi
while a window is open and focused on my first monitor,tofi
spawns on the second monitor instead and I have to go on that monitor, click on it (even if focus should follow cursor so it shouldn't be necessary), and then interact withtofi
.If I haven't any open window on the first monitor it works just fine.
On my second monitor this problem doesn't happen, having open windows or not it's irrelevant, and it works even if I have an open window on my first monitor, but the second is focused.
So the problem happen only when
tofi
is launched while focusing a window in the first monitor.That's weird. This is my config, maybe you can spot something wrong there.
EDIT: Just tried without config. Same result, so I don't think the problem is there.
The text was updated successfully, but these errors were encountered: