WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
212314
[GTK4] Make PointerLock work
https://bugs.webkit.org/show_bug.cgi?id=212314
Summary
[GTK4] Make PointerLock work
Carlos Garcia Campos
Reported
2020-05-24 05:40:27 PDT
There's no gdk_device_warp() nor grabs in GTK4 so we will have to use XLib API.
Attachments
Patch
(35.39 KB, patch)
2020-05-24 06:38 PDT
,
Carlos Garcia Campos
aperez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2020-05-24 06:38:05 PDT
Created
attachment 400158
[details]
Patch
Adrian Perez
Comment 2
2020-05-26 08:19:20 PDT
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 :)
Carlos Garcia Campos
Comment 3
2020-05-27 00:54:54 PDT
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.
Carlos Garcia Campos
Comment 4
2020-05-27 01:09:56 PDT
Committed
r262187
: <
https://trac.webkit.org/changeset/262187
>
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