Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wmutils for openSUSE:Factory checked in at 2021-04-14 10:11:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wmutils (Old) and /work/SRC/openSUSE:Factory/.wmutils.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wmutils" Wed Apr 14 10:11:17 2021 rev:2 rq:885096 version:1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/wmutils/wmutils.changes 2018-11-29 22:59:08.455599554 +0100 +++ /work/SRC/openSUSE:Factory/.wmutils.new.2401/wmutils.changes 2021-04-14 10:11:49.077578678 +0200 @@ -1,0 +2,9 @@ +Tue Apr 13 14:59:52 UTC 2021 - Luigi Baldoni <aloi...@gmx.com> + +- Update to version 1.5 + * slw.c: change cursor to select window + * new tool: slw + * Update IRC channel in the README +- Refresh wmutils-conflict.patch + +------------------------------------------------------------------- Old: ---- wmutils-1.4.tar.gz New: ---- wmutils-1.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wmutils.spec ++++++ --- /var/tmp/diff_new_pack.QbJfAM/_old 2021-04-14 10:11:49.617579590 +0200 +++ /var/tmp/diff_new_pack.QbJfAM/_new 2021-04-14 10:11:49.617579590 +0200 @@ -1,7 +1,7 @@ # # spec file for package wmutils # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: wmutils -Version: 1.4 +Version: 1.5 Release: 0 Summary: Set of tools for X windows manipulation License: ISC @@ -30,6 +30,7 @@ Patch1: wmutils-conflict.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xcb-cursor) BuildRequires: pkgconfig(xcb-util) %description @@ -59,6 +60,7 @@ %{_bindir}/lsw %{_bindir}/mapw %{_bindir}/pfw +%{_bindir}/slw %{_bindir}/wattr %{_bindir}/wmp %{_bindir}/wmv @@ -72,6 +74,7 @@ %{_mandir}/man1/lsw.1%{ext_man} %{_mandir}/man1/mapw.1%{ext_man} %{_mandir}/man1/pfw.1%{ext_man} +%{_mandir}/man1/slw.1%{?ext_man} %{_mandir}/man1/wattr.1%{ext_man} %{_mandir}/man1/wmp.1%{ext_man} %{_mandir}/man1/wmutils.1%{ext_man} ++++++ wmutils-1.4.tar.gz -> wmutils-1.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/Makefile new/core-1.5/Makefile --- old/core-1.4/Makefile 2017-01-25 14:19:03.000000000 +0100 +++ new/core-1.5/Makefile 2019-10-14 12:31:31.000000000 +0200 @@ -14,7 +14,8 @@ wrs.c \ chwb.c \ ignw.c \ - wmp.c + wmp.c \ + slw.c OBJ = $(SRC:.c=.o) BIN = $(SRC:.c=) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/README.md new/core-1.5/README.md --- old/core-1.4/README.md 2017-01-25 14:19:03.000000000 +0100 +++ new/core-1.5/README.md 2019-10-14 12:31:31.000000000 +0200 @@ -38,6 +38,7 @@ * lsw - list windows * mapw - map/unmap windows * pfw - print focused window +* slw - select window interactively * wattr - show window's attributes * wmp - move the mouse pointer * wmv - move a window @@ -91,6 +92,7 @@ You can contribute to the project in many ways; be it by testing the software, reporting bugs, submitting patches, or simply talking about it to other people! +The official IRC channel for wmutils' talks is #wmutils @irc.freenode.net. If you find a bug in the software, please report an issue. Same goes for feature requests, if they match the project's philosophy. @@ -100,7 +102,3 @@ before submitting the pull request. IF YOUR PULL REQUEST DOESN'T REFER TO A VALID ISSUE, IT WILL BE DISCARDED. - -You can also join the [#wmutils](irc://unix.chat/wmutils) IRC channel to -discuss your issues, submit patches or simply show us something cool you made -using wmutils! diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/config.mk new/core-1.5/config.mk --- old/core-1.4/config.mk 2017-01-25 14:19:03.000000000 +0100 +++ new/core-1.5/config.mk 2019-10-14 12:31:31.000000000 +0200 @@ -4,6 +4,6 @@ CC = cc LD = $(CC) -CFLAGS = -std=c99 -pedantic -Wall -Os -LDFLAGS = -lxcb -lxcb-util +CFLAGS = -std=c99 -pedantic -Wall -Os -I/usr/X11R6/include +LDFLAGS = -lxcb -lxcb-util -lxcb-cursor -L/usr/X11R6/lib diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/man/Makefile new/core-1.5/man/Makefile --- old/core-1.4/man/Makefile 2017-01-25 14:19:03.000000000 +0100 +++ new/core-1.5/man/Makefile 2019-10-14 12:31:31.000000000 +0200 @@ -14,6 +14,7 @@ chwb.1 \ ignw.1 \ wmp.1 \ + slw.1 \ wmutils.1 .POSIX: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/man/slw.1 new/core-1.5/man/slw.1 --- old/core-1.4/man/slw.1 1970-01-01 01:00:00.000000000 +0100 +++ new/core-1.5/man/slw.1 2019-10-14 12:31:31.000000000 +0200 @@ -0,0 +1,17 @@ +.Dd October 14, 2019 +.Dt SLW 1 +.Os wmutils +.Sh NAME +.Nm slw +.Nd select window interactively +.Sh SYNOPSIS +.Nm slw +.Sh DESCRIPTION +Wait for a button press event and print the window ID that got the +event to +.Dv stdout . +.Sh ENVIRONMENT +.Nm +acts on the X display specified by the +.Ev DISPLAY +variable. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/core-1.4/slw.c new/core-1.5/slw.c --- old/core-1.4/slw.c 1970-01-01 01:00:00.000000000 +0100 +++ new/core-1.5/slw.c 2019-10-14 12:31:31.000000000 +0200 @@ -0,0 +1,71 @@ +/* See LICENSE file for copyright and license details. */ + +#include <err.h> +#include <stdio.h> +#include <stdlib.h> +#include <xcb/xcb.h> +#include <xcb/xcb_aux.h> +#include <xcb/xcb_cursor.h> + +#include "util.h" + +/* use "heart" to show us your love! */ +#define XHAIR "tcross" + +static xcb_connection_t *conn; +static xcb_screen_t *scr; + +static xcb_window_t +select_window(void) +{ + uint32_t val[] = { XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE }; + xcb_window_t w = 0; + xcb_cursor_t p; + xcb_cursor_context_t *ctx; + xcb_grab_pointer_cookie_t c; + xcb_grab_pointer_reply_t *r; + xcb_generic_event_t *e; + + if (xcb_cursor_context_new(conn, scr, &ctx) < 0) + errx(1, "cannot instantiate cursor"); + + p = xcb_cursor_load_cursor(ctx, XHAIR); + xcb_flush(conn); + + c = xcb_grab_pointer(conn, 0, scr->root, + XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE, + XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC, XCB_NONE, p, + XCB_CURRENT_TIME); + + r = xcb_grab_pointer_reply(conn, c, NULL); + if (!r || r->status != XCB_GRAB_STATUS_SUCCESS) + errx(1, "couldn't grab pointer"); + + xcb_change_window_attributes(conn, scr->root, XCB_CW_EVENT_MASK, val); + xcb_flush(conn); + + for (;;) { + e = xcb_wait_for_event(conn); + switch ((e->response_type & ~0x80)) { + case XCB_BUTTON_PRESS: + w = ((xcb_button_press_event_t*)e)->child; + break; + case XCB_BUTTON_RELEASE: + xcb_cursor_context_free(ctx); + return w; + break; /* NOTREACHED */ + } + } +} + +int +main(int argc, char **argv) +{ + init_xcb(&conn); + get_screen(conn, &scr); + + printf("0x%08x\n", select_window()); + + kill_xcb(&conn); + return 0; +} ++++++ wmutils-conflict.patch ++++++ --- /var/tmp/diff_new_pack.QbJfAM/_old 2021-04-14 10:11:49.689579712 +0200 +++ /var/tmp/diff_new_pack.QbJfAM/_new 2021-04-14 10:11:49.689579712 +0200 @@ -1,7 +1,7 @@ -Index: core-1.4/Makefile +Index: core-1.5/Makefile =================================================================== ---- core-1.4.orig/Makefile -+++ core-1.4/Makefile +--- core-1.5.orig/Makefile ++++ core-1.5/Makefile @@ -40,6 +40,7 @@ $(OBJ): $(HDR) util.o install: $(BIN) mkdir -p $(DESTDIR)$(PREFIX)/bin/ @@ -10,10 +10,10 @@ cd man; $(MAKE) install uninstall: -Index: core-1.4/man/Makefile +Index: core-1.5/man/Makefile =================================================================== ---- core-1.4.orig/man/Makefile -+++ core-1.4/man/Makefile +--- core-1.5.orig/man/Makefile ++++ core-1.5/man/Makefile @@ -21,6 +21,7 @@ MAN = \ install: $(MAN) mkdir -p $(DESTDIR)$(MANPREFIX)/man1/ @@ -22,10 +22,10 @@ uninstall: @echo "uninstalling manpages" -Index: core-1.4/man/wtf.1 +Index: core-1.5/man/wtf.1 =================================================================== ---- core-1.4.orig/man/wtf.1 -+++ core-1.4/man/wtf.1 +--- core-1.5.orig/man/wtf.1 ++++ core-1.5/man/wtf.1 @@ -1,11 +1,11 @@ .Dd December 13, 2014 -.Dt WTF 1 @@ -41,10 +41,10 @@ .Ar wid .Sh DESCRIPTION .Nm -Index: core-1.4/man/wmutils.1 +Index: core-1.5/man/wmutils.1 =================================================================== ---- core-1.4.orig/man/wmutils.1 -+++ core-1.4/man/wmutils.1 +--- core-1.5.orig/man/wmutils.1 ++++ core-1.5/man/wmutils.1 @@ -29,10 +29,10 @@ show window's attributes move the mouse pointer .It wmv @@ -65,40 +65,3 @@ -.Xr wtf 1 , +.Xr wm_wtf 1 , .Xr wtp 1 -Index: core-1.4/README.md -=================================================================== ---- core-1.4.orig/README.md -+++ core-1.4/README.md -@@ -31,19 +31,19 @@ utilities - Here are the tools. This project is quite young, new tools can arrive - without being added to this list, so take it with a grain of salt. - --* chwb - change window's border --* chwso - change window's stacking order --* ignw - ignore/unignore window --* killw - kill windows --* lsw - list windows --* mapw - map/unmap windows --* pfw - print focused window --* wattr - show window's attributes --* wmp - move the mouse pointer --* wmv - move a window --* wrs - resize a window --* wtf - focus a window --* wtp - teleport a window -+* chwb - change window's border -+* chwso - change window's stacking order -+* ignw - ignore/unignore window -+* killw - kill windows -+* lsw - list windows -+* mapw - map/unmap windows -+* pfw - print focused window -+* wattr - show window's attributes -+* wmp - move the mouse pointer -+* wmv - move a window -+* wm_wtf - focus a window -+* wrs - resize a window -+* wtp - teleport a window - - All these tools come with a manpage ! read them for further informations. -