bump(x11/xfce4-docklike-plugin): 0.4.2

This commit is contained in:
Biswapriyo Nath 2024-04-11 09:32:36 +00:00 committed by Twaik Yont
parent 7012b6fda5
commit 691ec39842
2 changed files with 12 additions and 12 deletions

View File

@ -2,12 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://docs.xfce.org/panel-plugins/xfce4-docklike-plugin/st
TERMUX_PKG_DESCRIPTION="A modern, docklike, minimalist taskbar for XFCE"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=0.4
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
TERMUX_PKG_SRCURL=https://archive.xfce.org/src/panel-plugins/xfce4-docklike-plugin/${_MAJOR_VERSION}/xfce4-docklike-plugin-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=9da6eb18b4e755ee6affe5d36aa8af1892e5de811b0403d75a70480fe08d1b13
TERMUX_PKG_VERSION="0.4.2"
TERMUX_PKG_SRCURL=https://archive.xfce.org/src/panel-plugins/xfce4-docklike-plugin/${TERMUX_PKG_VERSION%.*}/xfce4-docklike-plugin-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=b6a40b976a78f2abb1bec057c48d45bfb317e00b12e05a7dfcbea4d183f8db71
# exo is for bin/exo-desktop-item-edit.
TERMUX_PKG_DEPENDS="atk, exo, gdk-pixbuf, glib, gtk3, harfbuzz, libc++, libcairo, libwnck, libx11, libxfce4ui, libxfce4util, libxi, pango, xfce4-panel, zlib"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_RM_AFTER_INSTALL="lib/locale"

View File

@ -18,24 +18,24 @@
int mGrabbedKeys;
@@ -113,8 +122,17 @@
void* threadedXIKeyListenner(void* data)
static void* threadedXIKeyListenner(void* data)
{
+#ifndef __ANDROID__
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nullptr);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, nullptr);
+#else
+ struct sigaction actions;
+ memset(&actions, 0, sizeof(actions));
+ sigemptyset(&actions.sa_mask);
+ actions.sa_flags = 0;
+ actions.sa_handler = threadSignalHandler;
+ sigaction(SIGUSR2, &actions, NULL);
+ sigaction(SIGUSR2, &actions, nullptr);
+#endif
Display* display = XOpenDisplay(NULL);
Display* display = XOpenDisplay(nullptr);
@@ -159,7 +177,11 @@
pthread_create(&mThread, NULL, threadedXIKeyListenner, NULL);
@@ -162,7 +180,11 @@
pthread_create(&mThread, nullptr, threadedXIKeyListenner, nullptr);
else if (mThread)
{
+#ifndef __ANDROID__
@ -43,6 +43,6 @@
+#else
+ pthread_kill(mThread, SIGUSR2);
+#endif
void* ret = NULL;
void* ret = nullptr;
pthread_join(mThread, &ret);
mThread = 0;