-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1638 - Part 2: Disable GTK2 when building with GTK3 and withou…
…t NPAPI. The original purpose of this issue. Ref: BZ 1377445
- Loading branch information
athenian200
committed
Jan 10, 2024
1 parent
b787af5
commit ff713f1
Showing
7 changed files
with
58 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
/* vim: set ts=8 sts=2 et sw=2 tw=80: */ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "mozilla/Types.h" | ||
|
||
// Only define the following workaround when using GTK3, which we detect | ||
// by checking if GTK3 stubs are not provided. | ||
#include <X11/Xlib.h> | ||
// Bug 1271100 | ||
// We need to trick system Cairo into not using the XShm extension due to | ||
// a race condition in it that results in frequent BadAccess errors. Cairo | ||
// relies upon XShmQueryExtension to initially detect if XShm is available. | ||
// So we define our own stub that always indicates XShm not being present. | ||
// mozgtk loads before libXext/libcairo and so this stub will take priority. | ||
// Our tree usage goes through xcb and remains unaffected by this. | ||
MFBT_API Bool XShmQueryExtension(Display* aDisplay) { return False; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters