mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
Issue #1516 - Part 1: Add a global build define to determine if the client can draw in the titlebar and update consumers of the local define
This commit is contained in:
parent
91c64d8c3f
commit
c3d2282ba8
4 changed files with 19 additions and 5 deletions
|
|
@ -209,7 +209,7 @@ MOZ_SAFE_BROWSING:
|
|||
#endif
|
||||
|
||||
CAN_DRAW_IN_TITLEBAR:
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
true,
|
||||
#else
|
||||
false,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ LightweightThemeConsumer.prototype = {
|
|||
footer.removeAttribute("lwthemefooter");
|
||||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && defined(MOZ_CAN_DRAW_IN_TITLEBAR)
|
||||
// On OS X, we extend the lightweight theme into the titlebar, which means setting
|
||||
// the chromemargin attribute. Some XUL applications already draw in the titlebar,
|
||||
// so we need to save the chromemargin value before we overwrite it with the value
|
||||
|
|
|
|||
|
|
@ -92,9 +92,6 @@ EXTRA_PP_JS_MODULES += [
|
|||
'WindowDraggingUtils.jsm',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'cocoa'):
|
||||
DEFINES['CAN_DRAW_IN_TITLEBAR'] = 1
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'):
|
||||
DEFINES['MENUBAR_CAN_AUTOHIDE'] = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue