all repos — ryudo @ 4d0f0f62daafdba27a5de4c58c925463a2eeede5

the floatiling window manager that flows; fork of rio from plan9port

make OPACITY and TRANSPARENTLIST optional (must be used together), bump version to 1.2.0
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmGUhEcACgkQO3+8IhRO
Y5hxlhAAgR5Ec1QhetKTMOXMkVsOgtJfMcxg51tY9q0nn+d3TwazX95BrkAdKf5L
HplGzJlz1oGTivNf1uqnZHTfJXtO+6MvxWReurlv3Ej41CrjjWK+kpkrGxVHjPzU
EZjW0CVIJXggm3hhxCVPFVot/O13YOyjabYixhcdazv+wyhqsU/UEvNDaEE00cB1
IlgiZXA09D/YM3hnuyDaUQeDewFCL0XOv9OdHvzT/3ygwyREQE8GbeHN4ZT6qS4x
hV4MmZIFco/oJu5H0m4tiZkNIRhFEK1RPwc5hJ5wO4VA/4dkXRVe+3Yu9bCxvxQP
uEPJp10yaIWxKTCqwv3neO6OcL6rfnmAgZmZYbrBKsdqvtBH5sIU9MJBCBz6brSc
I/QIzEX7fxxeVq6xBeT5cwDaxNd17lCAWgM2oZwfhfwm8zZQbjQ0QfVuGaJO98n/
pPk0WG3CRXpH2KF2HRn9nw/lO0T2rhpkj7zRskAlRpzNoSeSV+Yi/418NR/BB/mf
iBugvHYhowF80zjw55rmhLbQF4bfsX3h9dNBxKYZhDi4KXvY4zJaVQ8mGRgHo4hb
GVZbziEylELlS439Dx97KSETPNV/zCA2agW3hmVw6+pwkFeERCU/jS7skdiMnVRS
FYzIO8wEhjDEvjf9Mi7dvRiwYv7WGgvWmuOcwB70apxyPHoViTU=
=N9Kp
-----END PGP SIGNATURE-----
commit

4d0f0f62daafdba27a5de4c58c925463a2eeede5

parent

30a50ad90eaed4080d96b822bf0d67bff6a1137a

4 files changed, 8 insertions(+), 3 deletions(-)

jump to
M client.cclient.c

@@ -365,6 +365,7 @@ }

return 0; } +#if defined(OPACITY) && defined(TRANSPARENTLIST) int istransparent(Client* c) { static char* transnames[] = TRANSPARENTLIST; char** t = transnames;

@@ -377,6 +378,7 @@ ++t;

} return 0; } +#endif void ensureactive() { if (!current)
M config.def.hconfig.def.h

@@ -3,7 +3,8 @@ * RYUDO CONFIGURATION *

**********************/ /*************** - * LOOK & FEEL * [All of these are required options] + * LOOK & FEEL * [All of these are required options except OPACITY and + *TRANSPARENTLIST] **************/ /* Border colors */

@@ -38,7 +39,7 @@ #define SMENUFGCOL 0x000000

#define SMENUBGCOL 0x1F9B92 /* You must use a compositor (eg xcompmgr, picom) for the next 2 settings - * to have any effect! + * to have any effect, and each setting doesn't work without the other */ /* From 0 - 255, the opacity of windows marked 'transparent' */
M event.cevent.c

@@ -283,6 +283,7 @@ c->screen = s;

if (c->parent == None) c->parent = c->screen->root; } +#if defined(OPACITY) && defined(TRANSPARENTLIST) if (istransparent(c)) { /* We need to set the atom on both the window and its parent */ const Atom alpha_atom = XInternAtom(dpy, "_NET_WM_WINDOW_OPACITY", 0);

@@ -306,6 +307,7 @@ PropModeReplace,

(unsigned char*)&opacity, 1); } +#endif if (kbLaunch) { usleep(100000);
M main.cmain.c

@@ -21,7 +21,7 @@ #include "fns.h"

#include "patchlevel.h" char* version[] = { - "ryudo version 1.1.0\nCopyright (c) 1994-1996 David Hogan,\n(c) 2004 Russ " + "ryudo version 1.2.0\nCopyright (c) 1994-1996 David Hogan,\n(c) 2004 Russ " "Cox,\n(c) 2019-2021 Derek Stevens", 0};