4 Commits

4 changed files with 84 additions and 0 deletions

55
unclutter-8-gcc14.patch Normal file
View File

@@ -0,0 +1,55 @@
---
unclutter.c | 7 ++++++-
vroot.h | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
--- unclutter.c
+++ unclutter.c 2024-11-07 11:42:06.317430391 +0000
@@ -24,9 +24,11 @@
#include <X11/Xutil.h>
#include <X11/Xproto.h>
#include <stdio.h>
+#include <stdlib.h>
#include "vroot.h"
char *progname;
+void
pexit(str)char *str;{
fprintf(stderr,"%s: %s\n",progname,str);
exit(1);
@@ -74,6 +76,7 @@ char **names; /* -> argv list of names t
* return true if window has a wm_name and the start of it matches
* one of the given names to avoid
*/
+int
nameinlist(display,window)
Display *display;
Window window;
@@ -95,6 +98,7 @@ Window window;
/*
* create a small 1x1 curssor with all pixels masked out on the given screen.
*/
+Cursor
createnullcursor(display,root)
Display *display;
Window root;
@@ -119,7 +123,8 @@ Window root;
return cursor;
}
-main(argc,argv)char **argv;{
+int
+main(argc,argv)int argc; char **argv;{
Display *display;
int screen,oldx = -99,oldy = -99,numscreens;
int doroot = 0, jitter = 0, idletime = 5, usegrabmethod = 0, waitagain = 0,
--- vroot.h
+++ vroot.h 2024-11-07 11:40:16.247416397 +0000
@@ -40,6 +40,7 @@
static Window
VirtualRootWindow(dpy, screen)
Display *dpy;
+int screen;
{
static Display *save_dpy = (Display *)0;
static int save_screen = -1;

13
unclutter-gcc15.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: unclutter.c
===================================================================
--- unclutter.c.orig
+++ unclutter.c
@@ -59,7 +59,7 @@ void usage(){
* window can disappear while we are trying to create the child. Trap and
* ignore these errors.
*/
-int (*defaulthandler)();
+XErrorHandler defaulthandler;
int errorhandler(display,error)
Display *display;
XErrorEvent *error;

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Jun 20 08:45:47 UTC 2025 - pgajdos@suse.com
- added patches
build with gcc15
+ unclutter-gcc15.patch
-------------------------------------------------------------------
Thu Nov 7 11:42:31 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add patch unclutter-8-gcc14.patch
* Make it build even with gcc14
-------------------------------------------------------------------
Tue Feb 20 15:38:51 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -25,6 +25,9 @@ Group: System/X11/Utilities
URL: https://www.ibiblio.org/pub/X11/contrib/utilities/
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-return.diff
Patch1: %{name}-%{version}-gcc14.patch
# build with gcc15
Patch2: unclutter-gcc15.patch
BuildRequires: imake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)