Closed Bug 1241885 Opened 9 years ago Closed 6 years ago

Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding

Categories

(Core :: Widget: Gtk, task, P5)

task

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox46 --- wontfix
firefox66 --- fixed

People

(Reporter: Gijs, Assigned: ntim)

References

Details

(Whiteboard: tpi:+)

Attachments

(1 file)

... so that we can remove the draggable toolbar bindings entirely.
Priority: -- → P5
Whiteboard: tpi:+
Blocks: war-on-xbl
I started looking into this, and it looks like bug 1417847 started adding support for this.
I'm close to having a working patch.
Assignee: nobody → ntim.bugs
Attachment #9032644 - Attachment description: Bug 1241885 - Implement support for -moz-window-dragging in GTK for dragging the window using toolbars. → Bug 1241885 - Implement support for -moz-window-dragging on GTK for dragging the window using toolbars. r=stransky, dao
Attachment #9032644 - Attachment description: Bug 1241885 - Implement support for -moz-window-dragging on GTK for dragging the window using toolbars. r=stransky, dao → Bug 1241885 - Implement support for -moz-window-dragging on GTK for dragging the window using toolbars. r=stransky,dao
Summary: Implement support for -moz-window-dragging in GTK for dragging the window using toolbars → Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding
Attachment #9032644 - Attachment description: Bug 1241885 - Implement support for -moz-window-dragging on GTK for dragging the window using toolbars. r=stransky,dao → Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=stransky,dao
I can review the widget/gtk part if Karl can't do that.
Flags: needinfo?(ntim.bugs)
(In reply to Martin Stránský [:stransky] from comment #5) > I can review the widget/gtk part if Karl can't do that. Whatever works for you and Karl, I just need a review of the GTK part :)
Flags: needinfo?(ntim.bugs)

IIUC the history here is that toolbar-drag and/or WindowDraggingUtils existed first. -moz-window-dragging was added for https://bugzilla.mozilla.org/show_bug.cgi?id=944836 so that MacOS could perform the dragging without involvement of the app. NT support was added for bug 1163113 for B2G, but not used in real products until https://bugzilla.mozilla.org/show_bug.cgi?id=1219215#c4 . The reasons are not all clear to me, but efficiency of hit testing for frequent NT messages is the reason indicated in https://bugzilla.mozilla.org/show_bug.cgi?id=1107779#c7

I don't know that GTK code can have the same benefits as MacOS and doing hit-testing in the widget code feels a bit awkward to me, but doing things the same way on all platforms seems a good reason to do this.

(In reply to Karl Tomlinson (:karlt) from comment #7)

IIUC the history here is that toolbar-drag and/or WindowDraggingUtils existed first. -moz-window-dragging was added for https://bugzilla.mozilla.org/show_bug.cgi?id=944836 so that MacOS could perform the dragging without involvement of the app. NT support was added for bug 1163113 for B2G, but not used in real products until https://bugzilla.mozilla.org/show_bug.cgi?id=1219215#c4 . The reasons are not all clear to me, but efficiency of hit testing for frequent NT messages is the reason indicated in https://bugzilla.mozilla.org/show_bug.cgi?id=1107779#c7

I don't know that GTK code can have the same benefits as MacOS and doing hit-testing in the widget code feels a bit awkward to me, but doing things the same way on all platforms seems a good reason to do this.

In addition to being consistent across platforms, we want to get rid of XBL here too, which is the major benefit of doing this.

Attachment #9032644 - Attachment description: Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=stransky,dao → Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=karlt,bzbarsky,dao
Attachment #9032644 - Attachment description: Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=karlt,bzbarsky,dao → Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=stransky,bzbarsky,dao
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/176be7000d33 Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
Backout by apavel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0771389994bb Backed out 1 changesets for build bustages on a CLOSED TREE
Flags: needinfo?(ntim.bugs)
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5433228bc018 Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1521630
Type: defect → task
Blocks: 1694546
Regressions: 1736819
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: