Closed
Bug 1468670
Opened 7 years ago
Closed 7 years ago
[Wayland] Alt modifier key is not handled on wayland
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: ashie, Assigned: ashie)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
From https://bugzilla.redhat.com/show_bug.cgi?id=1470031
Description of problem:
When running firefox(cairo-gtk3-wayland) on wayland, Alt modifier key is not handled.
Steps to Reproduce:
1. Launch Firefox
2. Visit some pages
3. Press Alt + ← or Alt + →
Expected results:
Fire "GoForward" or "GoBack" event, then moving visited pages which listed on history in current tab.
Actual results:
Nothing happens
Additional info:
Firefox handles modifier keys by itself.
It depends on X11.
And when not existing X11, mModifierMasks is always set as 0.
* https://dxr.mozilla.org/mozilla-central/rev/75a32b57132f8cba42779555662a057a0416a313/widget/gtk/nsGtkKeyUtils.cpp#
* https://dxr.mozilla.org/mozilla-central/rev/75a32b57132f8cba42779555662a057a0416a313/widget/gtk/nsGtkKeyUtils.cpp#433
Assignee | ||
Updated•7 years ago
|
Summary: [Wayland] Alt modifier key is not handled on weston → [Wayland] Alt modifier key is not handled on wayland
Assignee | ||
Comment 1•7 years ago
|
||
It's reproduced on GNOME Shell & Weston.
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to Takuro Ashie from comment #0)
> *
> https://dxr.mozilla.org/mozilla-central/rev/
> 75a32b57132f8cba42779555662a057a0416a313/widget/gtk/nsGtkKeyUtils.cpp#
Sorry, the line number is missing:
https://dxr.mozilla.org/mozilla-central/rev/75a32b57132f8cba42779555662a057a0416a313/widget/gtk/nsGtkKeyUtils.cpp#176
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Assignee: nobody → ashie
Comment 4•7 years ago
|
||
Thanks, I'll look at it.
Updated•7 years ago
|
Component: Graphics → Widget: Gtk
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8985299 [details]
Bug 1468670 - Enablel Alt modifier key on Wayland
https://reviewboard.mozilla.org/r/250924/#review257456
Looks good but please move the Wayland setup to a dedicated routine - see commend below. Thanks!
::: widget/gtk/nsGtkKeyUtils.cpp:198
(Diff revision 1)
>
> mModifierKeys.Clear();
> memset(mModifierMasks, 0, sizeof(mModifierMasks));
>
> if (GDK_IS_X11_DISPLAY(gdk_display_get_default()))
> InitBySystemSettings();
Please remove it to InitBySystemSettingsX11 (or similar) to stress that it's X11 only.
::: widget/gtk/nsGtkKeyUtils.cpp:200
(Diff revision 1)
> memset(mModifierMasks, 0, sizeof(mModifierMasks));
>
> if (GDK_IS_X11_DISPLAY(gdk_display_get_default()))
> InitBySystemSettings();
> + else
> + mModifierMasks[INDEX_ALT] = 1 << 3;
Please create a new method (InitBySystemSettingsWayland() or so) and move the init here. I guess we'd need more key settings so we can configure all there.
Attachment #8985299 -
Flags: review?(stransky)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8985299 [details]
Bug 1468670 - Enablel Alt modifier key on Wayland
https://reviewboard.mozilla.org/r/250924/#review258132
Assignee | ||
Comment 8•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8985299 [details]
Bug 1468670 - Enablel Alt modifier key on Wayland
https://reviewboard.mozilla.org/r/250924/#review257456
> Please create a new method (InitBySystemSettingsWayland() or so) and move the init here. I guess we'd need more key settings so we can configure all there.
Done.
To handle it properly, probably we need to use wl_keyboard and xkb.
I'll file a new bug for it after this patch is merged.
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8985299 [details]
Bug 1468670 - Enablel Alt modifier key on Wayland
https://reviewboard.mozilla.org/r/250924/#review258138
Attachment #8985299 -
Flags: review?(stransky) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 10•7 years ago
|
||
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/98620eaa1b5c
Enablel Alt modifier key on Wayland r=stransky
Keywords: checkin-needed
Comment 11•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Assignee | ||
Comment 12•7 years ago
|
||
(In reply to Takuro Ashie [:ashie] from comment #8)
> To handle it properly, probably we need to use wl_keyboard and xkb.
> I'll file a new bug for it after this patch is merged.
bug1470047
Comment 13•7 years ago
|
||
I'm also seeing this on Firefox 66.0b6 developer edition under Wayland, build 20190208180655.
It seems to effect this too: bug1511973
Comment 14•6 years ago
|
||
:ashie: I am having seemingly the same problem, as this one was closed, I thought it's better to refile: #1538052
You need to log in
before you can comment on or make changes to this bug.
Description
•