desktop/xfce4-windowck-plugin: Updated for version 0.5.1.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Aaditya 2023-02-06 13:04:16 +05:30 committed by Willy Sudiarto Raharjo
parent a284557d8d
commit 4c9138fd4e
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 11 additions and 36 deletions

View file

@ -1,22 +0,0 @@
From aab7417cb3ca9a7c7a8798b3b3736c71bb19d419 Mon Sep 17 00:00:00 2001
From: foobarbyte <61650320+foobarbyte@users.noreply.github.com>
Date: Fri, 26 Jun 2020 07:07:55 +0000
Subject: [PATCH] Fix crash on closing last active window.
When on_name_changed is called, controlwindow may refer to a window that has been closed. If so, this leads to is_window_on_active_workspace_and_no_other_maximized_windows_above causing a segmentation fault when top_window turns out to be NULL. Since we would like to clear the displayed window title in this case, we should first check whether controlwindow refers to a closed window. It makes sense to do this where we already check if it is NULL or if it refers to the Desktop. We can check this by determining whether the window has a valid PID using wnck_window_get_pid.
---
panel-plugin/title/windowck-title.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/panel-plugin/title/windowck-title.c b/panel-plugin/title/windowck-title.c
index e73c2bd..b465a7b 100644
--- a/panel-plugin/title/windowck-title.c
+++ b/panel-plugin/title/windowck-title.c
@@ -123,6 +123,7 @@ static void on_name_changed (WnckWindow *controlwindow, WindowckPlugin *wckp)
const gchar *title_text;
if (controlwindow
+ && wnck_window_get_pid(controlwindow) // if active window has been closed, pid is 0
&& ((wnck_window_get_window_type (controlwindow) != WNCK_WINDOW_DESKTOP)
|| wckp->prefs->show_on_desktop))
{

View file

@ -12,7 +12,7 @@ xfce4-windowck-plugin: xfce4-windowck-plugin is a set of two plugins
xfce4-windowck-plugin: which allows to put the maximized window title
xfce4-windowck-plugin: and window buttons on the panel.
xfce4-windowck-plugin:
xfce4-windowck-plugin: https://goodies.xfce.org/projects/panel-plugins/xfce4-windowck-plugin
xfce4-windowck-plugin: https://docs.xfce.org/panel-plugins/xfce4-windowck-plugin/start
xfce4-windowck-plugin:
xfce4-windowck-plugin:
xfce4-windowck-plugin:

View file

@ -3,7 +3,7 @@
# Slackware build script for xfce4-windowck-plugin
# Generated using mkslack (dawoodfall.net/slackbuilds/noversion/mkslack)
# Copyright 2015-2021 Aaditya <aaditya_gnulinux@zoho.com>
# Copyright 2015-2023 Aaditya <aaditya_gnulinux@zoho.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xfce4-windowck-plugin
VERSION=${VERSION:-0.4.10}
BUILD=${BUILD:-2}
VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -68,7 +68,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -77,12 +77,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# add missing cedl38 upstream patch for last window close
patch -p1 < ${CWD}/aab7417cb3ca9a7c7a8798b3b3736c71bb19d419.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./autogen.sh \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@ -101,7 +98,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING NEWS README.md TODO \
cp -a AUTHORS COPYING NEWS README.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="xfce4-windowck-plugin"
VERSION="0.4.10"
HOMEPAGE="https://goodies.xfce.org/projects/panel-plugins/xfce4-windowck-plugin"
DOWNLOAD="https://github.com/invidian/xfce4-windowck-plugin/archive/v0.4.10/xfce4-windowck-plugin-0.4.10.tar.gz"
MD5SUM="c295921595c4bfa4e296b5ecee658491"
VERSION="0.5.1"
HOMEPAGE="https://docs.xfce.org/panel-plugins/xfce4-windowck-plugin/start"
DOWNLOAD="https://archive.xfce.org/src/panel-plugins/xfce4-windowck-plugin/0.5/xfce4-windowck-plugin-0.5.1.tar.bz2"
MD5SUM="9dc7dfbf53dea83678719ab150f5fb0c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""