-
Notifications
You must be signed in to change notification settings - Fork 14
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
Correctly handle offscreen window resize #74
Conversation
* src/xwidget.c (Fmake_xwidget): Use gtk_container_check_resize instead. (Fxwidget_resize): Use gtk_container_check_resize instead. ; Gtk+3 document says: ; > Applications should not use any API specific to GtkWindow ; > to operate on this object. It should be treated as a GtkBin ; > that has no parent widget.
* src/xwidget.c (xwidget_osr_draw_cb): Call it to avoid alloc_needes.
Just have in mind that #71 might be an emacs issue a not pgtk related. According to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44034 it might be the case that it only affects newer versions of gtk. In any case, this issue belongs to gtk's domain and it might be correct to fix it here independently of what happens in master. |
Ok I found an issue in this PR (not reproducible on HEAD), but it is best described in a screencast. Screencast from 10-17-2020 01:24:19 PM.zip Resizing the window from one of the top corners leads to weird behaviour.
|
!?!? What a weird behavior. It does not reproduce on Wayfire or GNOME(Wayland)... |
Ok, so I been educating myself a bit. This is somewhat a gtk issue, I can reproduce it on GNOME terminal on wayland, but it is only a bug in gnome-terminal since it does things in a very hacky way (just quoting a developer here), this bug apparently has existed for some time. Also gtk_offscreen_window is gone in gtk4. My current setup:
|
Reproduced when resizing the second frame with the top-left corner on GNOME(Wayland). |
Yeah, the bug produces different behaviour depending on the corner chosen. On the bottom-right corner, since the window is only being resized, it should work as expected. |
Try #75 to work around the resizing issue. |
#75 did fix the resizing issue. Thanks 🎉. I tested it on top of this PR ant it seems all the issues (71 and 73) are gone. |
Thanks for the testing. |
i'm fixing #71 and #73.
it seems to need more debug.