sysutils/conky: update to 1.20.1

Bugfix over the short-lived 1.20.0

ChangeLog: https://github.com/brndnmtthws/conky/releases/tag/v1.20.0

Features

 * Build AppImage separately per OS
 * Rotate appimage signing key
 * Add/use clang 15 on ubuntu builds
 * Define text_object.data.l as "long long"
 * Bump web deps, fix lint
 * Updated flake per NixOS/nix#5532
 * Fix bad imlib2 typedefs for imlib<1.10
 * Use --force with brew install, block upgrades
 * Tidy up docs
 * Update README.md
 * Update README.md
 * Handle external PropertyNotify events
 * Label dependency changes
 * Tweak XSendEvent arguments
 * Add modified date to web docs
 * Improve documentation for window types and hints
 * Refactor x11 event handling
 * Issue template: Link docs to obtain stack traces
 * Exclusive XInput event handling

Bug fixes

 * Enable wayland in appimage build
 * Fix regression in lua_load path handling
 * Lua imlib2 fixes
 * Increase max length of ACPI temp (fixes #977)
 * Skip propagation of non-input events
 * Fix render order in draw_stuff
 * Fix event propagation on Openbox
 * Fix missing y_abs argument copy
This commit is contained in:
Fernando Apesteguía 2024-04-17 15:08:47 +02:00
commit 8d540f0bc7

View file

@ -1,5 +1,5 @@
PORTNAME= conky
PORTVERSION= 1.19.8
PORTVERSION= 1.20.1
DISTVERSIONPREFIX= v
CATEGORIES= sysutils

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1709105678
SHA256 (brndnmtthws-conky-v1.19.8_GH0.tar.gz) = 8ac01452554559ace15e5966cb65eb37ef73b98c72967e6e0974c7ba98a1a88d
SIZE (brndnmtthws-conky-v1.19.8_GH0.tar.gz) = 1711683
TIMESTAMP = 1713443191
SHA256 (brndnmtthws-conky-v1.20.1_GH0.tar.gz) = 5e0531d1bbb589ee2369876340c341073d3bc13f8a79c05f89ec6170d6374085
SIZE (brndnmtthws-conky-v1.20.1_GH0.tar.gz) = 1839204

View file

@ -1,6 +1,6 @@
--- lua/CMakeLists.txt.orig 2023-02-18 14:34:53 UTC
--- lua/CMakeLists.txt.orig 2024-04-17 02:04:14 UTC
+++ lua/CMakeLists.txt
@@ -31,6 +31,8 @@ if(BUILD_X11)
@@ -30,6 +30,8 @@ if(BUILD_X11)
get_filename_component(X11_SM_LIB_PATH ${X11_SM_LIB} DIRECTORY)
link_directories(${X11_SM_LIB_PATH})

View file

@ -0,0 +1,26 @@
--- src/display-x11.cc.orig 2024-04-17 02:04:14 UTC
+++ src/display-x11.cc
@@ -762,7 +762,9 @@ bool handle_event<x_event_handler::BORDER_CROSSING>(
conky::display_output_x11 *surface, Display *display, XEvent &ev,
bool *consumed, void **cookie) {
if (ev.type != EnterNotify && ev.type != LeaveNotify) return false;
+#ifdef BUILD_XINPUT
if (window.xi_opcode != 0) return true; // handled by mouse_input already
+#endif
bool not_over_conky = ev.xcrossing.x_root <= window.x ||
ev.xcrossing.y_root <= window.y ||
@@ -771,11 +773,13 @@ bool handle_event<x_event_handler::BORDER_CROSSING>(
if ((not_over_conky && ev.xcrossing.type == LeaveNotify) ||
(!not_over_conky && ev.xcrossing.type == EnterNotify)) {
+#ifdef BUILD_MOUSE_EVENTS
llua_mouse_hook(mouse_crossing_event(
ev.xcrossing.type == EnterNotify ? mouse_event_t::AREA_ENTER
: mouse_event_t::AREA_LEAVE,
ev.xcrossing.x, ev.xcrossing.y, ev.xcrossing.x_root,
ev.xcrossing.y_root));
+#endif
}
return true;
}

View file

@ -1,4 +1,4 @@
--- src/x11.h.orig 2022-12-26 18:54:10 UTC
--- src/x11.h.orig 2024-04-17 02:04:14 UTC
+++ src/x11.h
@@ -22,6 +22,7 @@
*
@ -7,8 +7,8 @@
+#ifdef BUILD_X11
#pragma once
#include <X11/Xatom.h>
@@ -157,3 +158,5 @@ extern priv::use_xpmdb_setting use_xpmdb;
#include "config.h"
@@ -246,3 +247,5 @@ extern priv::use_xpmdb_setting use_xpmdb;
#else
extern priv::use_xpmdb_setting use_xpmdb;
#endif