* [PATCH 0/4] Initial Wayland integration
@ 2013-01-16 16:06 Ross Burton
2013-01-16 16:06 ` [PATCH 1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set Ross Burton
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ross Burton @ 2013-01-16 16:06 UTC (permalink / raw)
To: openembedded-core
Hi,
This is the first round of Wayland integration. The Wayland protocol libraries,
optional (based on DISTRO_FEATURE) support for the Wayland EGL backend is added
to Mesa, and then Weston is added.
Weston's packaging is rather complicated because it can build multiple backends,
but it's flexible enough to cope.
Future plans include an image that boots directly into wayland-on-KMS, and
enabling the Wayland support in GTK+ and Qt.
One quirk is that you can build weston without the wayland distro feature, which
results in just wayland-on-x11. The distro feature name may have to be split up
to reflect the different aspects more accurately.
Ross
The following changes since commit 53cc748b93e8af584557d6db5309c3e955182c5c:
linux-libc-headers: fix headers install in long path name environments (2013-01-10 23:53:51 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ross/wayland
for you to fetch changes up to b9bddcdeee3b8b0091e54b2e414757458101779b:
weston: add reference Wayland compositor (2013-01-16 15:43:12 +0000)
----------------------------------------------------------------
Alexandru DAMIAN (2):
wayland: add Wayland protocol library
mesa-dri: enable the wayland-egl platform
Ross Burton (2):
x11-common: set XDG_RUNTIME_DIR if it isn't already set
weston: add reference Wayland compositor
meta/recipes-graphics/mesa/mesa-common.inc | 10 +++-
meta/recipes-graphics/mesa/mesa-dri.inc | 1 +
meta/recipes-graphics/wayland/wayland_1.0.3.bb | 37 ++++++++++++++
.../recipes-graphics/wayland/weston/weston.desktop | 9 ++++
meta/recipes-graphics/wayland/weston/weston.png | Bin 0 -> 2383 bytes
meta/recipes-graphics/wayland/weston_1.0.3.bb | 52 ++++++++++++++++++++
.../x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh | 13 +++++
7 files changed, 121 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-graphics/wayland/wayland_1.0.3.bb
create mode 100644 meta/recipes-graphics/wayland/weston/weston.desktop
create mode 100644 meta/recipes-graphics/wayland/weston/weston.png
create mode 100644 meta/recipes-graphics/wayland/weston_1.0.3.bb
create mode 100644 meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
Alexandru DAMIAN (2):
wayland: add Wayland protocol library
mesa-dri: enable the wayland-egl platform
Ross Burton (2):
x11-common: set XDG_RUNTIME_DIR if it isn't already set
weston: add reference Wayland compositor
meta/recipes-graphics/mesa/mesa-common.inc | 10 +++-
meta/recipes-graphics/mesa/mesa-dri.inc | 1 +
meta/recipes-graphics/wayland/wayland_1.0.3.bb | 37 ++++++++++++++
.../recipes-graphics/wayland/weston/weston.desktop | 9 ++++
meta/recipes-graphics/wayland/weston/weston.png | Bin 0 -> 2383 bytes
meta/recipes-graphics/wayland/weston_1.0.3.bb | 52 ++++++++++++++++++++
.../x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh | 13 +++++
7 files changed, 121 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-graphics/wayland/wayland_1.0.3.bb
create mode 100644 meta/recipes-graphics/wayland/weston/weston.desktop
create mode 100644 meta/recipes-graphics/wayland/weston/weston.png
create mode 100644 meta/recipes-graphics/wayland/weston_1.0.3.bb
create mode 100644 meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
--
1.7.10.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set
2013-01-16 16:06 [PATCH 0/4] Initial Wayland integration Ross Burton
@ 2013-01-16 16:06 ` Ross Burton
2013-01-16 16:06 ` [PATCH 2/4] wayland: add Wayland protocol library Ross Burton
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2013-01-16 16:06 UTC (permalink / raw)
To: openembedded-core
Wayland needs this set for the communication pipes, so set a fallback in case it
hasn't already been set.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
.../x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
new file mode 100644
index 0000000..91594b9
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
@@ -0,0 +1,13 @@
+# Minimal/stub implementation of the XDG Base Directory specification.
+# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
+#
+# Wayland needs XDG_RUNTIME_DIR, so set it to /tmp. This isn't compliant with
+# the specification (wrong mode, wrong owner) but it's mostly sufficient.
+#
+# In the ideal case where SystemD is booting and userspace is initiated by a
+# SystemD user session this will have been set already, so don't overwrite it.
+
+if [ -z "$XGD_RUNTIME_DIR" ]; then
+ XDG_RUNTIME_DIR="/tmp"
+ export XDG_RUNTIME_DIR
+fi
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] wayland: add Wayland protocol library
2013-01-16 16:06 [PATCH 0/4] Initial Wayland integration Ross Burton
2013-01-16 16:06 ` [PATCH 1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set Ross Burton
@ 2013-01-16 16:06 ` Ross Burton
2013-01-16 16:06 ` [PATCH 3/4] mesa-dri: enable the wayland-egl platform Ross Burton
2013-01-16 16:06 ` [PATCH 4/4] weston: add reference Wayland compositor Ross Burton
3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2013-01-16 16:06 UTC (permalink / raw)
To: openembedded-core
From: Alexandru DAMIAN <alexandru.damian@intel.com>
Wayland is a protocol for a client application to display user interface windows
through the use of a compositing window manager. This package include the
specific set of server-side and client-side C libraries that implement the
protocol.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-graphics/wayland/wayland_1.0.3.bb | 37 ++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 meta/recipes-graphics/wayland/wayland_1.0.3.bb
diff --git a/meta/recipes-graphics/wayland/wayland_1.0.3.bb b/meta/recipes-graphics/wayland/wayland_1.0.3.bb
new file mode 100644
index 0000000..6e01b22
--- /dev/null
+++ b/meta/recipes-graphics/wayland/wayland_1.0.3.bb
@@ -0,0 +1,37 @@
+SUMMARY = "Wayland, a protocol between a compositor and clients"
+DESCRIPTION = "Wayland is a protocol for a compositor to talk to its clients \
+as well as a C library implementation of that protocol. The compositor can be \
+a standalone display server running on Linux kernel modesetting and evdev \
+input devices, an X application, or a wayland client itself. The clients can \
+be traditional applications, X servers (rootless or fullscreen) or other \
+display servers."
+HOMEPAGE = "http://wayland.freedesktop.org"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1d4476a7d98dd5691c53d4d43a510c72 \
+ file://src/wayland-server.c;endline=21;md5=079ae21dbf98ada52ec23744851b0a5c"
+
+SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
+SRC_URI[md5sum] = "eebe23571fd4f9ceacc583238e5a8ae9"
+SRC_URI[sha256sum] = "f6be5ee11ba534baaa116350b5efb874bf9963bf3fb18bcf40130317e83a5913"
+
+inherit autotools pkgconfig
+
+# We need wayland-native for the wayland-scanner utility
+BBCLASSEXTEND = "native"
+
+DEPENDS_virtclass-native = "expat-native"
+DEPENDS = "expat wayland-native"
+
+EXTRA_OECONF_virtclass-native = "--disable-documentation"
+EXTRA_OECONF = "--disable-documentation --disable-scanner"
+
+# Wayland installs a M4 macro for other projects to use. This M4 macro includes
+# a path to a Makefile fragment to get the rules to generate stubs from protocol
+# description files. The paths to the sysroot end up incorrect, so fix them.
+do_configure_append_class-native() {
+ sed -e 's,@prefix@,${STAGING_DIR_NATIVE},g' \
+ -e 's,@exec_prefix@,${STAGING_DIR_NATIVE},g' \
+ -e 's,@bindir@,${STAGING_BINDIR_NATIVE},g' \
+ -e 's,@datarootdir@,${STAGING_DATADIR_NATIVE},g' \
+ ${S}/wayland-scanner.m4.in > ${B}/wayland-scanner.m4
+}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] mesa-dri: enable the wayland-egl platform
2013-01-16 16:06 [PATCH 0/4] Initial Wayland integration Ross Burton
2013-01-16 16:06 ` [PATCH 1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set Ross Burton
2013-01-16 16:06 ` [PATCH 2/4] wayland: add Wayland protocol library Ross Burton
@ 2013-01-16 16:06 ` Ross Burton
2013-01-16 16:06 ` [PATCH 4/4] weston: add reference Wayland compositor Ross Burton
3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2013-01-16 16:06 UTC (permalink / raw)
To: openembedded-core
From: Alexandru DAMIAN <alexandru.damian@intel.com>
If the "wayland" DISTRO_FEATURE is present, enable the Wayland EGL platform.
This is required by the reference Wayland compositor, Weston.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-graphics/mesa/mesa-common.inc | 10 +++++++++-
meta/recipes-graphics/mesa/mesa-dri.inc | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc
index 838ce11..1ff08fb 100644
--- a/meta/recipes-graphics/mesa/mesa-common.inc
+++ b/meta/recipes-graphics/mesa/mesa-common.inc
@@ -28,10 +28,15 @@ EXTRA_OECONF = "--disable-glu \
--disable-glut \
--enable-shared-glapi"
-PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} egl gles"
+PACKAGECONFIG ??= "egl gles \
+ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\
+ ${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\
+ "
X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}"
+PACKAGECONFIG[wayland] = ",,wayland"
+
# Multiple virtual/gl providers being built breaks staging
EXCLUDE_FROM_WORLD = "1"
@@ -48,6 +53,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
libgles1-mesa libgles1-mesa-dev \
libgles2-mesa libgles2-mesa-dev \
libgles3-mesa libgles3-mesa-dev \
+ libwayland-egl libwayland-egl-dev \
"
do_install_append () {
@@ -89,6 +95,7 @@ FILES_libgles2-mesa = "${libdir}/libGLESv2.so.*"
FILES_libgl-mesa = "${libdir}/libGL.so.*"
FILES_libglapi = "${libdir}/libglapi.so.*"
FILES_libosmesa = "${libdir}/libOSMesa.so.*"
+FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*"
FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc"
FILES_libdricore-dev = "${libdir}/libdricore*.*"
@@ -100,5 +107,6 @@ FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/p
FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc"
FILES_libgles3-mesa-dev = "${includedir}/GLES3"
FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h ${libdir}/pkgconfig/osmesa.pc"
+FILES_libwayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayland-egl.*"
FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*"
diff --git a/meta/recipes-graphics/mesa/mesa-dri.inc b/meta/recipes-graphics/mesa/mesa-dri.inc
index 07544ab..1f6ec78 100644
--- a/meta/recipes-graphics/mesa/mesa-dri.inc
+++ b/meta/recipes-graphics/mesa/mesa-dri.inc
@@ -13,6 +13,7 @@ PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-
EGL_PLATFORMS = "drm"
EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}"
+EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'wayland', ',wayland', '', d)}"
PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl"
python populate_packages_prepend() {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] weston: add reference Wayland compositor
2013-01-16 16:06 [PATCH 0/4] Initial Wayland integration Ross Burton
` (2 preceding siblings ...)
2013-01-16 16:06 ` [PATCH 3/4] mesa-dri: enable the wayland-egl platform Ross Burton
@ 2013-01-16 16:06 ` Ross Burton
3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2013-01-16 16:06 UTC (permalink / raw)
To: openembedded-core
This is the reference Wayland compositor.
If the "wayland" DISTRO_FEATURE is present the KMS and Wayland (nested)
compositors are enabled.
If the "x11" DISTRO_FEATURE is present the X11 compositor is enabled, and a
launcher installed.
This also ships a basic Wayland terminal.
Based on work by Alexandru Damian <alexandru.damian@intel.com>, Daniel Stone
<daniel@fooishbar.org>, and Damien Lespiau <damien.lespiau@intel.com>.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
.../recipes-graphics/wayland/weston/weston.desktop | 9 ++++
meta/recipes-graphics/wayland/weston/weston.png | Bin 0 -> 2383 bytes
meta/recipes-graphics/wayland/weston_1.0.3.bb | 52 ++++++++++++++++++++
3 files changed, 61 insertions(+)
create mode 100644 meta/recipes-graphics/wayland/weston/weston.desktop
create mode 100644 meta/recipes-graphics/wayland/weston/weston.png
create mode 100644 meta/recipes-graphics/wayland/weston_1.0.3.bb
diff --git a/meta/recipes-graphics/wayland/weston/weston.desktop b/meta/recipes-graphics/wayland/weston/weston.desktop
new file mode 100644
index 0000000..1086ae8
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/weston.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=Weston
+Comment=Wayland Compostitor
+Exec=weston
+Icon=weston
+Terminal=false
+Categories=Utility;
diff --git a/meta/recipes-graphics/wayland/weston/weston.png b/meta/recipes-graphics/wayland/weston/weston.png
new file mode 100644
index 0000000000000000000000000000000000000000..ea8b7e0e233c86301a88e5bc925f09b3de2f9dec
GIT binary patch
literal 2383
zcmV-V39$BwP)<h;3K|Lk000e1NJLTq001Qb001xu1^@s6mW8t`00004XF*Lt006O%
z3;baP00001b5ch_0Itp)=>Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF*
zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^000SaNLh0L00vqB00vqCV0pn~000Od
zNkl<ZSi|j@S!`Ta8OML;-dSvqcRRLIH%>xQqBu<>r2)6lHU)*YGzD6ustAQm;suEZ
zhy*;Kma<erD75fUKvgLcm5Kz2NGK6b8dFMLmXstkO-o}pyW=E|xAAxu&z*Y@58qv9
z?!*;RdCDh^=H7G9`M&@8f6H0mJr=FC_iNW$n_BB-$Eg1YsE9%Jo}0Wb*X6qW&r*}0
z%cZbB<Uck5JwQLu2Q&i)PynWZ3E(o215i7B-D$uAoO<OU(&`Rc2ebi4!=Us5pg@u)
zHlnx(gYCc|nl7LTMZ(o*14SSUyaW6lqj8wlZAVb%B3oZd0u?|58Q0z!Am`aqTI&Sh
zxIcgoxU+j3SOu)WUbL9}<!Yw(K8TaQAIv`TZz|Bxum)5TtSMNUjQ2;fGmFtMN@?<0
z6bIO{uSoaK6~L3geZaSYXFL*=*7|YaH^9jddm6Y2c%Djbj^m%2qjdHGoN^0h3nbcL
z@wm(*-47}O)+|`l*N74gkO%g%#1q`F*8+cV!(b2a4G&ZTcnz5J8gvj;p9Y375;mz`
zn0?6%bcY;YI9(M83etU0o(64sf#H430J})Bg-gF4XXWS9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OWlNI>MZcDkiHCXvpcpM7<R|j$bSK7
zGX0WKUo;y4001R)MObuXVRU6WV{&C-bY%cCFflVNFflDLHdHY(Ix#UiGc+qOFgh?W
z=?fD>0000bbVXQnWMOn=I&E)cX=Zr<GB7bSEif@HF*Z~&GCDCaIx{gVFfckWFv@O(
zSO5S38FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H1002ovPDHLkV1ms0
BD_j5o
literal 0
HcmV?d00001
diff --git a/meta/recipes-graphics/wayland/weston_1.0.3.bb b/meta/recipes-graphics/wayland/weston_1.0.3.bb
new file mode 100644
index 0000000..d192fb2
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston_1.0.3.bb
@@ -0,0 +1,52 @@
+SUMMARY = "Weston, a Wayland compositor"
+DESCRIPTION = "Weston is the reference implementation of a Wayland compositor"
+HOMEPAGE = "http://wayland.freedesktop.org"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=275efac2559a224527bd4fd593d38466 \
+ file://src/compositor.c;endline=23;md5=aa98a8db03480fe7d500d0b1f4b8850c"
+
+SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
+ file://weston.png \
+ file://weston.desktop"
+SRC_URI[md5sum] = "f82ac2e013e6b6a6303ac4ba7b64c7f2"
+SRC_URI[sha256sum] = "3136a7d2f654ea3e946d4217f7e25321248ad2921f1f4e2504dda58968e04853"
+
+inherit autotools pkgconfig
+
+DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 mtdev jpeg"
+DEPENDS += "wayland mesa-dri virtual/egl"
+
+EXTRA_OECONF = "--disable-android-compositor --enable-setuid-install"
+EXTRA_OECONF += "--disable-tablet-shell --disable-xwayland"
+EXTRA_OECONF += "--enable-simple-clients --enable-clients --disable-simple-egl-clients"
+
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
+ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+ ${@base_contains('DISTRO_FEATURES', 'opengles2', 'gles', '', d)} \
+ "
+# Weston on KMS
+PACKAGECONFIG[kms] = "--enable-drm-compositor --enable-weston-launch,--disable-drm-compositor --disable-weston-launch,drm udev mesa-dri libpam"
+# Weston on Wayland (nested Weston)
+PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,mesa-dri"
+# Weston on X11
+PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo"
+
+PACKAGECONFIG[gles] = "--with-cairo-glesv2,,virtual/libgles2"
+
+do_install_append() {
+ # Weston doesn't need the .la files to load modules, so wipe them
+ rm -f ${D}/${libdir}/weston/*.la
+
+ for feature in ${DISTRO_FEATURES}; do
+ # If X11, ship a desktop file to launch it
+ if [ "$feature" = "x11" ]; then
+ install -d ${D}${datadir}/applications
+ install ${WORKDIR}/weston.desktop ${D}${datadir}/applications
+
+ install -d ${D}${datadir}/icons/hicolor/48x48/apps
+ install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps
+ fi
+ done
+}
+
+FILES_${PN} += "${datadir}/applications ${datadir}/icons"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-16 16:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 16:06 [PATCH 0/4] Initial Wayland integration Ross Burton
2013-01-16 16:06 ` [PATCH 1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set Ross Burton
2013-01-16 16:06 ` [PATCH 2/4] wayland: add Wayland protocol library Ross Burton
2013-01-16 16:06 ` [PATCH 3/4] mesa-dri: enable the wayland-egl platform Ross Burton
2013-01-16 16:06 ` [PATCH 4/4] weston: add reference Wayland compositor Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox