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

dev branch mac #1144

Open
PalaceTony opened this issue Aug 12, 2024 · 7 comments
Open

dev branch mac #1144

PalaceTony opened this issue Aug 12, 2024 · 7 comments

Comments

@PalaceTony
Copy link

Hi dear author, thanks for your work. I got a minor problem recently. I'm usign mac and the dev branch fo sioyek. when in full screen and i open a pdf from outside sioyek, it wont get me to sioyek but when not in full screen, opening a pdf from outside sioyek does take me to the app. I'm not sure if i have explained this clearly? i dont think i got this issue before? but anyway thanks for this work

@ahrm
Copy link
Owner

ahrm commented Aug 12, 2024

I don't have access to a mac right now, so I will have to debug this issue when I can find one.

@PalaceTony
Copy link
Author

PalaceTony commented Aug 12, 2024 via email

@jinjiaodawang
Copy link
Contributor

This issue can be confirmed on macOS 15.0. I am trying to fix this.

@jinjiaodawang
Copy link
Contributor

I am not sure which part ensures the windowed mode of sioyek to be focused. Is the focus function of sioyek normal on other platforms?

@ahrm
Copy link
Owner

ahrm commented Oct 7, 2024

This is the part that should handle the focus:

focus_on_widget(target);
.

@jinjiaodawang
Copy link
Contributor

I plan to first find where the window is focused and then check why this part is not compatible with macOS's fullscreen mode. However, I commented out the line you mentioned, and the file still focuses on the window when opened on macOS. Moreover, this part seems to be code designed for Android?
It also seems that calling ./sioyek /some/path/to/file.pdf from the terminal and opening the file directly in the browser invokes different code? I'm not quite sure.

@jinjiaodawang
Copy link
Contributor

should be fixed in #1183
Perhaps it is not an elegant method, I did not find the original window focus code

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

3 participants