Commit Graph

27 Commits

Author SHA1 Message Date
Martin Stransky
6795fbfa13 Bug 1517205 - Make nsWaylandDisplay() global, r=lsalzman
Lazilly create nsWaylandDisplay objects and remove them at Firefox quit.

nsWaylandDisplay objects should stay as global objects and don't be created/released.
The creation/removal wastes resources on server side as the wl_registry objects at nsWaylandDisplay has to be stored at server
side and can't be removed until firefox ends [1] anyway.

Also the removed nsWaylandDisplay causes crashes when display
topology changes due to the global nature of the wl_registry.

[1] https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_registry

Differential Revision: https://phabricator.services.mozilla.com/D26673
2019-04-09 21:39:51 +00:00
Tooru Fujisawa
5ef6d9cc06 Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru
e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Ehsan Akhgari
b614d2046a Bug 1508472 - Part 5: Fifth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal. I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13371
2018-11-29 10:30:46 +00:00
Gabriele Svelto
7e234e998c Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240
2018-11-28 17:25:23 +00:00
Martin Stransky
b6b5545b5e Bug 1507475 - [Wayland] Implement global wayland registry, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D12255
2018-11-23 07:04:16 +00:00
Noemi Erli
323b8441c3 Backed out changeset bafd708f5788 (bug 1507475) for bustages in builds/worker/workspace/build/src/widget/gtk/mozcontainer.cpp CLOSED TREE 2018-11-22 20:09:34 +02:00
Martin Stransky
fdcb8299a5 Bug 1507475 - [Wayland] Implement global wayland registry, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D12255
2018-11-22 13:24:09 +00:00
Narcis Beleuzu
96d12cc5c4 Backed out changeset 06d83f08f7a0 (bug 1505164) for bustages on WindowSurfaceWayland.cpp . CLOSED TREE 2018-11-15 22:47:57 +02:00
Martin Stransky
14a2c09395 Bug 1505164 - Express explicit wailand interface versions r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D11757
2018-11-15 14:52:04 +00:00
Mike Hommey
f1710e9386 Bug 1505023 - Remove unused mKeyboard field after bug 1504689. r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D11135
2018-11-07 11:43:01 +00:00
Martin Stransky
dd7f646479 Bug 1504689 - [Wayland/Clipboard] Don't delete clipboard wl_data_offer after keyboard focus out, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D10895
2018-11-06 10:40:48 +00:00
Martin Stransky
44f950620a Bug 1501944 - Enable to build wayland target on Gtk 3.10, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D10369
2018-11-01 11:09:40 +00:00
Jan Beich
23de96ec52 Bug 1500484 - Unbreak Wayland build on FreeBSD after bug 1417890. r=stransky 2018-10-19 09:45:00 -04:00
Martin Stransky
583f496bd0 Bug 1491824 - [Wayland/Clipboard] Clipboard minor fixes, r=jhorak
when g_io_channel_set_encoding() fails we return invalid/uninitialized clipboardData,
so initialize clipboardData explicitly.

When SetClipboardDataOffer() is called with null aWaylandDataOffer,
delete our recent clipboard content and not throw an error message.

Differential Revision: https://phabricator.services.mozilla.com/D6039
2018-09-18 15:12:02 +00:00
Martin Stransky
08976d87f8 Bug 1464808 - [Wayland] Emulate gdk_drag_context_get_actions(), nsWaylandDragContext::GetSelectedDragAction returns available D&D actions when no one is selected by user, r=jhorak
MozReview-Commit-ID: 586XiJXYZ3D
2018-06-01 12:24:17 +02:00
Martin Stransky
ed3fc12c14 Bug 1438131 - Implement Drop on Wayland, r=jhorak
This patch implements Drop operation on Wayland/Gtk+. That's because drop operations are part
of clipboard on Wayland and we use our own paste clipboard handler on Wayland (Bug 1282015).

Wayland drop data are provided by wl_data_device_listener, it provides us drag and drop callbacks
which we route to nsDragService module.

MozReview-Commit-ID: 9uGYPg9YF6P
2018-04-05 16:16:43 +02:00
Evan Klitzke
20cc6e5421 Bug 1438136 - [Wayland/Clipboard] Null terminate text string returned by GetClipboardText(), r=stransky 2018-05-15 01:33:00 +03:00
Martin Stransky
28494d0ea4 Bug 1461306 - [Wayland] Don't use sizeof() to get mime type array size, r=jhorak
MozReview-Commit-ID: GE5helkqoUt
2018-05-14 14:01:26 +02:00
Evan Klitzke
74b276981e Bug 1460810 - [Gtk/Wayland] Handle error value (-1) returned by gtk_section_data_get_length(), r=stransky 2018-05-11 00:30:00 +03:00
Martin Stransky
8ec93df3e1 Bug 1449490 - [Wayland] Implement gtk_clipboard_request_text() by nsRetrievalContextWayland::GetClipboardText(), r=jhorak
MozReview-Commit-ID: 6qcXcA2qUmG
2018-04-05 13:00:58 +02:00
Martin Stransky
806afc9175 Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak
MozReview-Commit-ID: 7TTBSbx8qPX
2018-04-04 14:49:21 +02:00
Martin Stransky
843d2d5c59 Bug 1438132 - Don't return false-positive data from clipboard, r=jhorak
MozReview-Commit-ID: 5I9DbpYJ8EL
2018-03-01 14:07:15 +01:00
Martin Stransky
b7dce205ba Bug 1434572 - [Wayland] Implement Gtk+ clipboard shortcut for copy->paste between Firefox windows, r=jhorak
When we perform copy -> paste in one Firefox process on Wayland we're locked because Wayland clipboard paste
operation just reads data from filedescriptor and does not run main event loop.

A solution is to use Gtk+ shortcut here, when clipboard selection owner is the same as data receiver.
Gtk+ then does not go through X11/Wayland but calls clipboard data getter callback directly,
which we can use on Wayland because it also does not main event loop and the operation
stays synchronous.

MozReview-Commit-ID: G8myCBUSzxb
2018-02-01 11:23:01 +01:00
Martin Stransky
95d28bb34b Bug 1431049 - don't crash when keyboard is not present, based on patch by Takuro Ashie. r=jhorak
MozReview-Commit-ID: 4o7P8Dzui22
2018-01-19 10:08:48 +01:00
Martin Stransky
b6ed426b1d Bug 1430725 - dlsym gdk_wayland_display_get_wl_display() function, r=jhorak
MozReview-Commit-ID: 7TBNP1Q1YyO
2018-01-16 10:07:45 +01:00
Martin Stransky
87feb52818 Bug 1417890 - Implement nsRetrievalContextWayland, r=jhorak
MozReview-Commit-ID: 3wrOXg9KRtC
2017-12-18 13:36:12 +01:00