There's no gdk_device_warp() nor grabs in GTK4 so we will have to use XLib API.
Created attachment 400158 [details] Patch
Comment on attachment 400158 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400158&action=review > Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:166 > +#if USE(GTK4) You don't need this #if, we have a “gdk_event_get_root_coords()” stub in “GtkVersioning.h” which works for GTK4 :)
Comment on attachment 400158 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400158&action=review >> Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:166 >> +#if USE(GTK4) > > You don't need this #if, we have a “gdk_event_get_root_coords()” > stub in “GtkVersioning.h” which works for GTK4 :) I left this one on purpose to avoid calling gdk_event_get_coords() again. Maybe it's not worth the super-micro-optimization, though. I'll change to improve the code readability.
Committed r262187: <https://trac.webkit.org/changeset/262187>