WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
229227
[GTK] resize broken for wrapped X11 windows
https://bugs.webkit.org/show_bug.cgi?id=229227
Summary
[GTK] resize broken for wrapped X11 windows
lucianito
Reported
2021-08-17 22:56:43 PDT
Adding a web view to a GtkWindow created by wrapping a native X11 window works but then the web view does not respond to window size changes. Window child = XCreateWindow(display, parent, 0, 0, initial_width, initial_height, 0, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); GdkWindow* gdkChild = gdk_x11_window_foreign_new_for_display(gdk_display_get_default(), child); GtkWindow* window = GTK_WINDOW(gtk_widget_new(GTK_TYPE_WINDOW, NULL)); g_signal_connect(window, "realize", G_CALLBACK(gtk_widget_set_window), gdkChild); WebKitWebView* webview = WEBKIT_WEB_VIEW(webkit_web_view_new()); gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(webView)); ... web view displays and works as expected .... gtk_window_resize(window, some_width, some_height); // web view content dimensions are never resized
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug