Reliably get the Gdk Monitor when shown #22
Unanswered
ErikReider
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hmm, I'm not sure about that, but I suspect there's a way to make it work. Does |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, maybe this is what you want? https://docs.gtk.org/gdk4/signal.Surface.enter-monitor.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Thanks for your amazing work!
I've been encountering a little snag when porting from the GTK3 version to this one. In the previous release, I was able to get the current Monitor that the surface was attached to by listening to the "::has-toplevel-focus" signal after the "::map" signal which worked reliably (without running
set_monitor
):Now when the "::has-toplevel-focus" has been removed in GTK4, is there any of achieving this/a better way of doing this in GTK4?
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions