diff options
| author | Po Lu | 2023-09-06 10:31:26 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-06 10:31:26 +0800 |
| commit | aa872f2540377ae5c5e054a55cdd789934a56a47 (patch) | |
| tree | 431d835301bdc45a83a8f3939d4af8c43ced6789 /java | |
| parent | 03ac16ece40ba3e3ba805d6a61cc457d84bf3792 (diff) | |
| download | emacs-aa872f2540377ae5c5e054a55cdd789934a56a47.tar.gz emacs-aa872f2540377ae5c5e054a55cdd789934a56a47.zip | |
Properly run emacsclient under Android if DISPLAY is set
* java/org/gnu/emacs/EmacsPixmap.java (EmacsPixmap): Make
dimensions final, since they are never changed after the
constructor.
* lib-src/emacsclient.c (decode_options): If --display is not
provided, always set display to `android' even if DISPLAY is
provided.
* lisp/net/browse-url.el (browse-url): Cease setting DISPLAY
under Android.
* src/callproc.c (getenv_internal, make_environment_block):
Don't afford DISPLAY special treatment under Android.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsPixmap.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsPixmap.java b/java/org/gnu/emacs/EmacsPixmap.java index eb011bc5e65..2cbf7a430cf 100644 --- a/java/org/gnu/emacs/EmacsPixmap.java +++ b/java/org/gnu/emacs/EmacsPixmap.java | |||
| @@ -34,7 +34,7 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 34 | { | 34 | { |
| 35 | /* The depth of the bitmap. This is not actually used, just defined | 35 | /* The depth of the bitmap. This is not actually used, just defined |
| 36 | in order to be consistent with X. */ | 36 | in order to be consistent with X. */ |
| 37 | public int depth, width, height; | 37 | public final int depth, width, height; |
| 38 | 38 | ||
| 39 | /* The bitmap itself. */ | 39 | /* The bitmap itself. */ |
| 40 | public Bitmap bitmap; | 40 | public Bitmap bitmap; |
| @@ -44,7 +44,7 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 44 | 44 | ||
| 45 | /* Whether or not GC should be explicitly triggered upon | 45 | /* Whether or not GC should be explicitly triggered upon |
| 46 | release. */ | 46 | release. */ |
| 47 | private boolean needCollect; | 47 | private final boolean needCollect; |
| 48 | 48 | ||
| 49 | /* ID used to determine whether or not the GC clip rects | 49 | /* ID used to determine whether or not the GC clip rects |
| 50 | changed. */ | 50 | changed. */ |
| @@ -77,6 +77,10 @@ public final class EmacsPixmap extends EmacsHandleObject | |||
| 77 | this.width = width; | 77 | this.width = width; |
| 78 | this.height = height; | 78 | this.height = height; |
| 79 | this.depth = depth; | 79 | this.depth = depth; |
| 80 | |||
| 81 | /* The immutable bitmap constructor is only leveraged to create | ||
| 82 | small fringe bitmaps. */ | ||
| 83 | this.needCollect = false; | ||
| 80 | } | 84 | } |
| 81 | 85 | ||
| 82 | public | 86 | public |