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

Popweb multi-monitor incorrect popup in Windows & macOS #16

Open
damoncro opened this issue Nov 26, 2021 · 9 comments
Open

Popweb multi-monitor incorrect popup in Windows & macOS #16

damoncro opened this issue Nov 26, 2021 · 9 comments

Comments

@damoncro
Copy link

damoncro commented Nov 26, 2021

If I have multiple monitors, and Emacs is in second monitor, the (popweb-get-cursor-coordinate) may get (238 . -674), but popweb only shows in (238 . 0) position where it is in the first monitor.

Macos Emacs 27.2

MatthewZMD added a commit to MatthewZMD/popweb that referenced this issue Nov 28, 2021
Fixes manateelazycat#16

Signed-off-by: Mingde (Matthew) Zeng <[email protected]>
@damoncro
Copy link
Author

damoncro commented Nov 29, 2021

The fix did not fix, in macOS, the problem still exists. If Emacs is in second monitor, the popup window still shows up in the top part of the first monitor.

@damoncro
Copy link
Author

damoncro commented Nov 29, 2021

Please check my screen setting, the top one is second monitor.
image

@MatthewZMD
Copy link
Collaborator

Weird, I also have multi-monitor and I tried your display configuration, but I cannot reproduce your issue.

@MatthewZMD
Copy link
Collaborator

MatthewZMD commented Nov 29, 2021

Can you go to popweb.py and print all the parameter values in adjust_render_pos(self, render_x, render_y, x_offset, y_offset, render_w, render_h, frame_x, frame_y, frame_w, frame_h): and give me a screenshot

@damoncro
Copy link
Author

image

@manateelazycat
Copy link
Owner

微信图片_20211129184422

I have test scecond monitor as your layout, works fine.

@MatthewZMD
Copy link
Collaborator

How did you get a negative value for (window-absolute-pixel-position)?

@chenyanming
Copy link
Contributor

chenyanming commented Nov 30, 2021

I used surface pro 7 windows 10, same. I guess the fix only works in Linux?

@chenyanming
Copy link
Contributor

@MatthewZMD Not sure, this is what it outputs.

@MatthewZMD MatthewZMD reopened this Dec 3, 2021
@MatthewZMD MatthewZMD changed the title Popweb window can not show in second monitor Popweb incorrect popup in Windows & macOS Dec 3, 2021
@MatthewZMD MatthewZMD changed the title Popweb incorrect popup in Windows & macOS Popweb multi-monitor incorrect popup in Windows & macOS Dec 3, 2021
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

4 participants