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

cropgtk.py version uses monitor(0), not 'current' monitor #117

Open
Ndolam opened this issue May 10, 2024 · 0 comments
Open

cropgtk.py version uses monitor(0), not 'current' monitor #117

Ndolam opened this issue May 10, 2024 · 0 comments

Comments

@Ndolam
Copy link
Contributor

Ndolam commented May 10, 2024

cropgtk.py contains the following code:

display = gdk.Display().get_default()
wa = display.get_monitor(0).get_workarea()

However, rather than hard-coding 0 in get_monitor(), I think it should use the monitor where the mouse is.
(Issue: I have a laptop with a 15.6" 1080p screen connected to a large 4K external monitor, and even when I am working on the large monitor, the code uses the size of my laptop screen to scale the initial display. This is not convenient.)

I took a quick look at some docs, but being neither a Python programmer nor a Gtk programmer, it wasn't obvious what incantation is needed to select the monitor where the mouse is. Anyone here know enough Gtk to fix this?

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

1 participant