[Webkit-unassigned] [Bug 229227] New: [GTK] resize broken for wrapped X11 windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 17 22:56:43 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=229227

            Bug ID: 229227
           Summary: [GTK] resize broken for wrapped X11 windows
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lucianito at gmail.com
                CC: bugs-noreply at webkitgtk.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210818/9e8244ea/attachment.htm>


More information about the webkit-unassigned mailing list