mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-11 21:30:09 -07:00
firefox [testing]: no-x11 revision 3
This commit is contained in:
parent
acc0dc3c87
commit
f537f8db9e
@ -6,5 +6,5 @@ f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
|
|||||||
42b3c7a29e61905be0e7425b8786870eb1d1c9e0f74c3f0909521b2ac52ac702
|
42b3c7a29e61905be0e7425b8786870eb1d1c9e0f74c3f0909521b2ac52ac702
|
||||||
2b5732c15e7eade2a01ad9794de372f25fbb75e4e2f53bce089548bcbbba20d1
|
2b5732c15e7eade2a01ad9794de372f25fbb75e4e2f53bce089548bcbbba20d1
|
||||||
4b06181475f667ae2851540552ade56d5257a03cd21da588e2eb1e538bbc8176
|
4b06181475f667ae2851540552ade56d5257a03cd21da588e2eb1e538bbc8176
|
||||||
23ca840f908cd255de2b3d70a566563c6b2709751c6f84706aa62e5d89c84255
|
bb20235914fd82976508eb72bf4810b467d3ba1d47a1031e00f7995b9933ae56
|
||||||
47d30d0b73d3174f8ebbb6d686892fa5435beb3355ddacded70194ef0249ba51
|
47d30d0b73d3174f8ebbb6d686892fa5435beb3355ddacded70194ef0249ba51
|
||||||
|
@ -484,7 +484,7 @@ index 38c07bd812..a125d8d275 100644
|
|||||||
{
|
{
|
||||||
'js_name': 'clipboard',
|
'js_name': 'clipboard',
|
||||||
diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build
|
diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build
|
||||||
index 291e3a78c8..f376231c3e 100644
|
index 291e3a78c8..7955b84d0c 100644
|
||||||
--- a/widget/gtk/moz.build
|
--- a/widget/gtk/moz.build
|
||||||
+++ b/widget/gtk/moz.build
|
+++ b/widget/gtk/moz.build
|
||||||
@@ -101,22 +101,26 @@ if CONFIG["MOZ_WAYLAND"]:
|
@@ -101,22 +101,26 @@ if CONFIG["MOZ_WAYLAND"]:
|
||||||
@ -512,6 +512,7 @@ index 291e3a78c8..f376231c3e 100644
|
|||||||
+ "CompositorWidgetChild.cpp",
|
+ "CompositorWidgetChild.cpp",
|
||||||
+ "CompositorWidgetParent.cpp",
|
+ "CompositorWidgetParent.cpp",
|
||||||
+ "InProcessGtkCompositorWidget.cpp",
|
+ "InProcessGtkCompositorWidget.cpp",
|
||||||
|
+ "nsUserIdleServiceGTK.cpp",
|
||||||
+]
|
+]
|
||||||
+
|
+
|
||||||
+EXPORTS.mozilla.widget += [
|
+EXPORTS.mozilla.widget += [
|
||||||
@ -519,7 +520,6 @@ index 291e3a78c8..f376231c3e 100644
|
|||||||
+ "CompositorWidgetParent.h",
|
+ "CompositorWidgetParent.h",
|
||||||
+ "GtkCompositorWidget.h",
|
+ "GtkCompositorWidget.h",
|
||||||
+ "InProcessGtkCompositorWidget.h",
|
+ "InProcessGtkCompositorWidget.h",
|
||||||
+ "nsUserIdleServiceGTK.cpp",
|
|
||||||
+]
|
+]
|
||||||
|
|
||||||
if CONFIG["NS_PRINTING"]:
|
if CONFIG["NS_PRINTING"]:
|
||||||
@ -1014,7 +1014,7 @@ index d649c7e0bf..70b47d5124 100644
|
|||||||
nsresult nsWidgetGtk2ModuleCtor() { return nsAppShellInit(); }
|
nsresult nsWidgetGtk2ModuleCtor() { return nsAppShellInit(); }
|
||||||
|
|
||||||
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
|
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
|
||||||
index aec5588fae..350f24d328 100644
|
index aec5588fae..2df8558a4f 100644
|
||||||
--- a/widget/gtk/nsWindow.cpp
|
--- a/widget/gtk/nsWindow.cpp
|
||||||
+++ b/widget/gtk/nsWindow.cpp
|
+++ b/widget/gtk/nsWindow.cpp
|
||||||
@@ -58,7 +58,6 @@
|
@@ -58,7 +58,6 @@
|
||||||
@ -1104,7 +1104,21 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2567,6 +2577,7 @@ void nsWindow::SetSizeMode(nsSizeMode aMode) {
|
@@ -2479,11 +2489,13 @@ void nsWindow::NativeMove() {
|
||||||
|
|
||||||
|
LOG(("nsWindow::NativeMove [%p] %d %d\n", (void*)this, point.x, point.y));
|
||||||
|
|
||||||
|
+#ifdef MOZ_X11
|
||||||
|
if (GdkIsX11Display() && IsPopup() &&
|
||||||
|
!gtk_widget_get_visible(GTK_WIDGET(mShell))) {
|
||||||
|
mHiddenPopupPositioned = true;
|
||||||
|
mPopupPosition = point;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if (IsWaylandPopup()) {
|
||||||
|
GdkRectangle size = DevicePixelsToGdkSizeRoundUp(mBounds.Size());
|
||||||
|
@@ -2567,6 +2579,7 @@ void nsWindow::SetSizeMode(nsSizeMode aMode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool GetWindowManagerName(GdkWindow* gdk_window, nsACString& wmName) {
|
static bool GetWindowManagerName(GdkWindow* gdk_window, nsACString& wmName) {
|
||||||
@ -1112,7 +1126,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (!GdkIsX11Display()) {
|
if (!GdkIsX11Display()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2633,6 +2644,7 @@ static bool GetWindowManagerName(GdkWindow* gdk_window, nsACString& wmName) {
|
@@ -2633,6 +2646,7 @@ static bool GetWindowManagerName(GdkWindow* gdk_window, nsACString& wmName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
wmName = reinterpret_cast<const char*>(prop_return);
|
wmName = reinterpret_cast<const char*>(prop_return);
|
||||||
@ -1120,7 +1134,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2690,6 +2702,7 @@ void nsWindow::GetWorkspaceID(nsAString& workspaceID) {
|
@@ -2690,6 +2704,7 @@ void nsWindow::GetWorkspaceID(nsAString& workspaceID) {
|
||||||
if (!GdkIsX11Display() || !mShell) {
|
if (!GdkIsX11Display() || !mShell) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1128,7 +1142,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
// Get the gdk window for this widget.
|
// Get the gdk window for this widget.
|
||||||
GdkWindow* gdk_window = gtk_widget_get_window(mShell);
|
GdkWindow* gdk_window = gtk_widget_get_window(mShell);
|
||||||
if (!gdk_window) {
|
if (!gdk_window) {
|
||||||
@@ -2718,9 +2731,11 @@ void nsWindow::GetWorkspaceID(nsAString& workspaceID) {
|
@@ -2718,9 +2733,11 @@ void nsWindow::GetWorkspaceID(nsAString& workspaceID) {
|
||||||
|
|
||||||
workspaceID.AppendInt((int32_t)wm_desktop[0]);
|
workspaceID.AppendInt((int32_t)wm_desktop[0]);
|
||||||
g_free(wm_desktop);
|
g_free(wm_desktop);
|
||||||
@ -1140,7 +1154,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
int32_t workspaceID = workspaceIDStr.ToInteger(&rv);
|
int32_t workspaceID = workspaceIDStr.ToInteger(&rv);
|
||||||
if (NS_FAILED(rv) || !workspaceID || !GdkIsX11Display() || !mShell) {
|
if (NS_FAILED(rv) || !workspaceID || !GdkIsX11Display() || !mShell) {
|
||||||
@@ -2760,6 +2775,7 @@ void nsWindow::MoveToWorkspace(const nsAString& workspaceIDStr) {
|
@@ -2760,6 +2777,7 @@ void nsWindow::MoveToWorkspace(const nsAString& workspaceIDStr) {
|
||||||
SubstructureNotifyMask | SubstructureRedirectMask, &xevent);
|
SubstructureNotifyMask | SubstructureRedirectMask, &xevent);
|
||||||
|
|
||||||
XFlush(xdisplay);
|
XFlush(xdisplay);
|
||||||
@ -1148,7 +1162,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
using SetUserTimeFunc = void (*)(GdkWindow*, guint32);
|
using SetUserTimeFunc = void (*)(GdkWindow*, guint32);
|
||||||
@@ -2800,9 +2816,13 @@ guint32 nsWindow::GetLastUserInputTime() {
|
@@ -2800,9 +2818,13 @@ guint32 nsWindow::GetLastUserInputTime() {
|
||||||
// button and key releases. Therefore use the most recent of
|
// button and key releases. Therefore use the most recent of
|
||||||
// gdk_x11_display_get_user_time and the last time that we have seen.
|
// gdk_x11_display_get_user_time and the last time that we have seen.
|
||||||
GdkDisplay* gdkDisplay = gdk_display_get_default();
|
GdkDisplay* gdkDisplay = gdk_display_get_default();
|
||||||
@ -1162,7 +1176,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
if (sLastUserInputTime != GDK_CURRENT_TIME &&
|
if (sLastUserInputTime != GDK_CURRENT_TIME &&
|
||||||
TimestampIsNewerThan(sLastUserInputTime, timestamp)) {
|
TimestampIsNewerThan(sLastUserInputTime, timestamp)) {
|
||||||
@@ -2960,6 +2980,7 @@ void nsWindow::UpdateClientOffsetFromFrameExtents() {
|
@@ -2960,6 +2982,7 @@ void nsWindow::UpdateClientOffsetFromFrameExtents() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1170,7 +1184,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
GdkAtom cardinal_atom = gdk_x11_xatom_to_atom(XA_CARDINAL);
|
GdkAtom cardinal_atom = gdk_x11_xatom_to_atom(XA_CARDINAL);
|
||||||
|
|
||||||
GdkAtom type_returned;
|
GdkAtom type_returned;
|
||||||
@@ -2985,6 +3006,7 @@ void nsWindow::UpdateClientOffsetFromFrameExtents() {
|
@@ -2985,6 +3008,7 @@ void nsWindow::UpdateClientOffsetFromFrameExtents() {
|
||||||
|
|
||||||
mClientOffset = nsIntPoint(left, top);
|
mClientOffset = nsIntPoint(left, top);
|
||||||
}
|
}
|
||||||
@ -1178,7 +1192,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
// Send a WindowMoved notification. This ensures that BrowserParent
|
// Send a WindowMoved notification. This ensures that BrowserParent
|
||||||
// picks up the new client offset and sends it to the child process
|
// picks up the new client offset and sends it to the child process
|
||||||
@@ -3003,6 +3025,7 @@ LayoutDeviceIntPoint nsWindow::GetClientOffset() {
|
@@ -3003,6 +3027,7 @@ LayoutDeviceIntPoint nsWindow::GetClientOffset() {
|
||||||
|
|
||||||
gboolean nsWindow::OnPropertyNotifyEvent(GtkWidget* aWidget,
|
gboolean nsWindow::OnPropertyNotifyEvent(GtkWidget* aWidget,
|
||||||
GdkEventProperty* aEvent) {
|
GdkEventProperty* aEvent) {
|
||||||
@ -1186,7 +1200,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (aEvent->atom == gdk_atom_intern("_NET_FRAME_EXTENTS", FALSE)) {
|
if (aEvent->atom == gdk_atom_intern("_NET_FRAME_EXTENTS", FALSE)) {
|
||||||
UpdateClientOffsetFromFrameExtents();
|
UpdateClientOffsetFromFrameExtents();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -3012,6 +3035,7 @@ gboolean nsWindow::OnPropertyNotifyEvent(GtkWidget* aWidget,
|
@@ -3012,6 +3037,7 @@ gboolean nsWindow::OnPropertyNotifyEvent(GtkWidget* aWidget,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1194,7 +1208,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3149,9 +3173,11 @@ void* nsWindow::GetNativeData(uint32_t aDataType) {
|
@@ -3149,9 +3175,11 @@ void* nsWindow::GetNativeData(uint32_t aDataType) {
|
||||||
return GetToplevelWidget();
|
return GetToplevelWidget();
|
||||||
|
|
||||||
case NS_NATIVE_WINDOW_WEBRTC_DEVICE_ID:
|
case NS_NATIVE_WINDOW_WEBRTC_DEVICE_ID:
|
||||||
@ -1206,7 +1220,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
NS_WARNING(
|
NS_WARNING(
|
||||||
"nsWindow::GetNativeData(): NS_NATIVE_WINDOW_WEBRTC_DEVICE_ID is not "
|
"nsWindow::GetNativeData(): NS_NATIVE_WINDOW_WEBRTC_DEVICE_ID is not "
|
||||||
"handled on Wayland!");
|
"handled on Wayland!");
|
||||||
@@ -3171,9 +3197,11 @@ void* nsWindow::GetNativeData(uint32_t aDataType) {
|
@@ -3171,9 +3199,11 @@ void* nsWindow::GetNativeData(uint32_t aDataType) {
|
||||||
case NS_NATIVE_OPENGL_CONTEXT:
|
case NS_NATIVE_OPENGL_CONTEXT:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
case NS_NATIVE_EGL_WINDOW: {
|
case NS_NATIVE_EGL_WINDOW: {
|
||||||
@ -1218,7 +1232,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
#ifdef MOZ_WAYLAND
|
#ifdef MOZ_WAYLAND
|
||||||
if (mContainer) {
|
if (mContainer) {
|
||||||
return moz_container_wayland_get_egl_window(mContainer,
|
return moz_container_wayland_get_egl_window(mContainer,
|
||||||
@@ -3497,7 +3525,7 @@ gboolean nsWindow::OnExposeEvent(cairo_t* cr) {
|
@@ -3497,7 +3527,7 @@ gboolean nsWindow::OnExposeEvent(cairo_t* cr) {
|
||||||
if (!listener) return FALSE;
|
if (!listener) return FALSE;
|
||||||
|
|
||||||
LOG(("received expose event [%p] %p 0x%lx (rects follow):\n", this,
|
LOG(("received expose event [%p] %p 0x%lx (rects follow):\n", this,
|
||||||
@ -1227,7 +1241,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
LayoutDeviceIntRegion exposeRegion;
|
LayoutDeviceIntRegion exposeRegion;
|
||||||
if (!ExtractExposeRegion(exposeRegion, cr)) {
|
if (!ExtractExposeRegion(exposeRegion, cr)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -4041,6 +4069,7 @@ void nsWindow::OnMotionNotifyEvent(GdkEventMotion* aEvent) {
|
@@ -4041,6 +4071,7 @@ void nsWindow::OnMotionNotifyEvent(GdkEventMotion* aEvent) {
|
||||||
MOZ_ASSERT(gdk_window, "gdk_window_get_toplevel should not return null");
|
MOZ_ASSERT(gdk_window, "gdk_window_get_toplevel should not return null");
|
||||||
|
|
||||||
bool canDrag = true;
|
bool canDrag = true;
|
||||||
@ -1235,7 +1249,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (GdkIsX11Display()) {
|
if (GdkIsX11Display()) {
|
||||||
// Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=789054
|
// Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=789054
|
||||||
// To avoid crashes disable double-click on WM without _NET_WM_MOVERESIZE.
|
// To avoid crashes disable double-click on WM without _NET_WM_MOVERESIZE.
|
||||||
@@ -4051,6 +4080,7 @@ void nsWindow::OnMotionNotifyEvent(GdkEventMotion* aEvent) {
|
@@ -4051,6 +4082,7 @@ void nsWindow::OnMotionNotifyEvent(GdkEventMotion* aEvent) {
|
||||||
canDrag = false;
|
canDrag = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1243,7 +1257,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
if (canDrag) {
|
if (canDrag) {
|
||||||
gdk_window_begin_move_drag(gdk_window, 1, aEvent->x_root, aEvent->y_root,
|
gdk_window_begin_move_drag(gdk_window, 1, aEvent->x_root, aEvent->y_root,
|
||||||
@@ -4499,16 +4529,20 @@ TimeStamp nsWindow::GetEventTimeStamp(guint32 aEventTime) {
|
@@ -4499,16 +4531,20 @@ TimeStamp nsWindow::GetEventTimeStamp(guint32 aEventTime) {
|
||||||
int64_t tick =
|
int64_t tick =
|
||||||
BaseTimeDurationPlatformUtils::TicksFromMilliseconds(timestampTime);
|
BaseTimeDurationPlatformUtils::TicksFromMilliseconds(timestampTime);
|
||||||
eventTimeStamp = TimeStamp::FromSystemTime(tick);
|
eventTimeStamp = TimeStamp::FromSystemTime(tick);
|
||||||
@ -1265,7 +1279,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
mozilla::CurrentX11TimeGetter* nsWindow::GetCurrentTimeGetter() {
|
mozilla::CurrentX11TimeGetter* nsWindow::GetCurrentTimeGetter() {
|
||||||
MOZ_ASSERT(mGdkWindow, "Expected mGdkWindow to be set");
|
MOZ_ASSERT(mGdkWindow, "Expected mGdkWindow to be set");
|
||||||
if (MOZ_UNLIKELY(!mCurrentTimeGetter)) {
|
if (MOZ_UNLIKELY(!mCurrentTimeGetter)) {
|
||||||
@@ -4516,6 +4550,7 @@ mozilla::CurrentX11TimeGetter* nsWindow::GetCurrentTimeGetter() {
|
@@ -4516,6 +4552,7 @@ mozilla::CurrentX11TimeGetter* nsWindow::GetCurrentTimeGetter() {
|
||||||
}
|
}
|
||||||
return mCurrentTimeGetter.get();
|
return mCurrentTimeGetter.get();
|
||||||
}
|
}
|
||||||
@ -1273,7 +1287,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
gboolean nsWindow::OnKeyPressEvent(GdkEventKey* aEvent) {
|
gboolean nsWindow::OnKeyPressEvent(GdkEventKey* aEvent) {
|
||||||
LOG(("OnKeyPressEvent [%p]\n", (void*)this));
|
LOG(("OnKeyPressEvent [%p]\n", (void*)this));
|
||||||
@@ -5100,6 +5135,7 @@ static GdkWindow* CreateGdkWindow(GdkWindow* parent, GtkWidget* widget) {
|
@@ -5100,6 +5137,7 @@ static GdkWindow* CreateGdkWindow(GdkWindow* parent, GtkWidget* widget) {
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1281,7 +1295,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
// Configure GL visual on X11. We add alpha silently
|
// Configure GL visual on X11. We add alpha silently
|
||||||
// if we use WebRender to workaround NVIDIA specific Bug 1663273.
|
// if we use WebRender to workaround NVIDIA specific Bug 1663273.
|
||||||
bool nsWindow::ConfigureX11GLVisual(bool aUseAlpha) {
|
bool nsWindow::ConfigureX11GLVisual(bool aUseAlpha) {
|
||||||
@@ -5156,6 +5192,7 @@ bool nsWindow::ConfigureX11GLVisual(bool aUseAlpha) {
|
@@ -5156,6 +5194,7 @@ bool nsWindow::ConfigureX11GLVisual(bool aUseAlpha) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1289,7 +1303,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
nsCString nsWindow::GetWindowNodeName() {
|
nsCString nsWindow::GetWindowNodeName() {
|
||||||
nsCString nodeName("Unknown");
|
nsCString nodeName("Unknown");
|
||||||
@@ -5740,7 +5777,7 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
|
@@ -5740,7 +5779,7 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
|
||||||
if (mShell) {
|
if (mShell) {
|
||||||
LOG(("\tmShell %p mContainer %p mGdkWindow %p XID 0x%lx\n", mShell,
|
LOG(("\tmShell %p mContainer %p mGdkWindow %p XID 0x%lx\n", mShell,
|
||||||
mContainer, mGdkWindow,
|
mContainer, mGdkWindow,
|
||||||
@ -1298,7 +1312,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
} else if (mContainer) {
|
} else if (mContainer) {
|
||||||
LOG(("\tmContainer %p mGdkWindow %p\n", mContainer, mGdkWindow));
|
LOG(("\tmContainer %p mGdkWindow %p\n", mContainer, mGdkWindow));
|
||||||
} else if (mGdkWindow) {
|
} else if (mGdkWindow) {
|
||||||
@@ -6812,6 +6849,7 @@ void nsWindow::UpdateTitlebarTransparencyBitmap() {
|
@@ -6812,6 +6851,7 @@ void nsWindow::UpdateTitlebarTransparencyBitmap() {
|
||||||
cairo_surface_destroy(surface);
|
cairo_surface_destroy(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1306,7 +1320,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (!mNeedsShow) {
|
if (!mNeedsShow) {
|
||||||
Display* xDisplay = GDK_WINDOW_XDISPLAY(mGdkWindow);
|
Display* xDisplay = GDK_WINDOW_XDISPLAY(mGdkWindow);
|
||||||
Window xDrawable = GDK_WINDOW_XID(mGdkWindow);
|
Window xDrawable = GDK_WINDOW_XID(mGdkWindow);
|
||||||
@@ -6834,6 +6872,7 @@ void nsWindow::UpdateTitlebarTransparencyBitmap() {
|
@@ -6834,6 +6874,7 @@ void nsWindow::UpdateTitlebarTransparencyBitmap() {
|
||||||
|
|
||||||
XFreePixmap(xDisplay, maskPixmap);
|
XFreePixmap(xDisplay, maskPixmap);
|
||||||
}
|
}
|
||||||
@ -1314,7 +1328,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
void nsWindow::GrabPointer(guint32 aTime) {
|
void nsWindow::GrabPointer(guint32 aTime) {
|
||||||
@@ -7116,7 +7155,7 @@ static bool IsFullscreenSupported(GtkWidget* aShell) {
|
@@ -7116,7 +7157,7 @@ static bool IsFullscreenSupported(GtkWidget* aShell) {
|
||||||
GdkScreen* screen = gtk_widget_get_screen(aShell);
|
GdkScreen* screen = gtk_widget_get_screen(aShell);
|
||||||
GdkAtom atom = gdk_atom_intern("_NET_WM_STATE_FULLSCREEN", FALSE);
|
GdkAtom atom = gdk_atom_intern("_NET_WM_STATE_FULLSCREEN", FALSE);
|
||||||
return gdk_x11_screen_supports_net_wm_hint(screen, atom);
|
return gdk_x11_screen_supports_net_wm_hint(screen, atom);
|
||||||
@ -1323,7 +1337,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -8396,6 +8435,7 @@ bool nsWindow::GetDragInfo(WidgetMouseEvent* aMouseEvent, GdkWindow** aWindow,
|
@@ -8396,6 +8437,7 @@ bool nsWindow::GetDragInfo(WidgetMouseEvent* aMouseEvent, GdkWindow** aWindow,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1331,7 +1345,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (GdkIsX11Display()) {
|
if (GdkIsX11Display()) {
|
||||||
// Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=789054
|
// Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=789054
|
||||||
// To avoid crashes disable double-click on WM without _NET_WM_MOVERESIZE.
|
// To avoid crashes disable double-click on WM without _NET_WM_MOVERESIZE.
|
||||||
@@ -8411,6 +8451,7 @@ bool nsWindow::GetDragInfo(WidgetMouseEvent* aMouseEvent, GdkWindow** aWindow,
|
@@ -8411,6 +8453,7 @@ bool nsWindow::GetDragInfo(WidgetMouseEvent* aMouseEvent, GdkWindow** aWindow,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1339,7 +1353,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
|
|
||||||
// FIXME: It would be nice to have the widget position at the time
|
// FIXME: It would be nice to have the widget position at the time
|
||||||
// of the event, but it's relatively unlikely that the widget has
|
// of the event, but it's relatively unlikely that the widget has
|
||||||
@@ -9131,6 +9172,7 @@ void nsWindow::GetCompositorWidgetInitData(
|
@@ -9131,6 +9174,7 @@ void nsWindow::GetCompositorWidgetInitData(
|
||||||
mozilla::widget::CompositorWidgetInitData* aInitData) {
|
mozilla::widget::CompositorWidgetInitData* aInitData) {
|
||||||
nsCString displayName;
|
nsCString displayName;
|
||||||
|
|
||||||
@ -1347,7 +1361,7 @@ index aec5588fae..350f24d328 100644
|
|||||||
if (GdkIsX11Display() && mXWindow != X11None) {
|
if (GdkIsX11Display() && mXWindow != X11None) {
|
||||||
// Make sure the window XID is propagated to X server, we can fail otherwise
|
// Make sure the window XID is propagated to X server, we can fail otherwise
|
||||||
// in GPU process (Bug 1401634).
|
// in GPU process (Bug 1401634).
|
||||||
@@ -9144,6 +9186,10 @@ void nsWindow::GetCompositorWidgetInitData(
|
@@ -9144,6 +9188,10 @@ void nsWindow::GetCompositorWidgetInitData(
|
||||||
*aInitData = mozilla::widget::GtkCompositorWidgetInitData(
|
*aInitData = mozilla::widget::GtkCompositorWidgetInitData(
|
||||||
(mXWindow != X11None) ? mXWindow : (uintptr_t) nullptr, displayName,
|
(mXWindow != X11None) ? mXWindow : (uintptr_t) nullptr, displayName,
|
||||||
isShaped, GdkIsX11Display(), GetClientSize());
|
isShaped, GdkIsX11Display(), GetClientSize());
|
||||||
|
@ -1 +1 @@
|
|||||||
94.0 2
|
94.0 3
|
||||||
|
Loading…
Reference in New Issue
Block a user