Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mouse action 1 doesn't seem to work #1376

Closed
msr8 opened this issue Aug 31, 2022 · 5 comments
Closed

Mouse action 1 doesn't seem to work #1376

msr8 opened this issue Aug 31, 2022 · 5 comments
Labels
suggestion Request for new feature or some form of enhancement

Comments

@msr8
Copy link

msr8 commented Aug 31, 2022

yabai version: yabai-v4.0.2
macOS version: Monterey (12.5.1)

So basically, I cant seem to move any window with my modifier (fn) key. Resize works properly, but move does not work. Here is the output of some commands:

Screenshot 2022-08-31 at 6 03 24 AM

Screenshot 2022-08-31 at 6 07 06 AM

Screenshot 2022-08-31 at 6 03 44 AM

Screenshot 2022-08-31 at 6 04 25 AM

Screenshot 2022-08-31 at 6 06 55 AM

@24unix
Copy link

24unix commented Aug 31, 2022

Sorry for OT: What ist that for a config for neofetch?

Mine looks so:
image

@msr8
Copy link
Author

msr8 commented Sep 1, 2022

Yupp, here is my config file. Here are many other themes for neofetch

@distek
Copy link

distek commented Sep 7, 2022

I deferred from this:
#468 (comment)

Basically you have to change this:

        scripting_addition_move_window(g_mouse_state.window->id, new_point.x, new_point.y);

to

        window_manager_move_window(g_mouse_state.window, new_point.x, new_point.y);

and it works as expected.

As of right now this is in event.c:

yabai/src/event.c

Line 1086 in 983e0d7

scripting_addition_move_window(g_mouse_state.window->id, new_point.x, new_point.y);

The line number or entire file is, of course, subject to change, but this will get you what you want. It works pretty well so I'm not sure what added benefit the scripting addition brings, but it's probably faster in it's animation?

Regardless, it works after you build it with this change and you can keep the config as-is.

@koekeishiya koekeishiya added addressed on master; not released Fixed upstream, but not yet released suggestion Request for new feature or some form of enhancement labels Sep 7, 2022
@koekeishiya
Copy link
Owner

koekeishiya commented Sep 7, 2022

The scripting-addition is used for more performant window movement. I've added an automatic fallback to the slower AX API if the scripting-addition is not available (on master).

If you have SIP disabled and it does not work, try reinstalling the scripting-addition, and make sure you have enabled automatic loading: https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#macos-big-sur-and-monterey---automatically-load-scripting-addition-on-startup

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Sep 7, 2022
@koekeishiya
Copy link
Owner

Fixed in the latest release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
suggestion Request for new feature or some form of enhancement
Projects
None yet
Development

No branches or pull requests

4 participants