]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add SPDX identifiers
authorJohan Malm <jgm323@gmail.com>
Sat, 13 Nov 2021 21:56:53 +0000 (21:56 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 13 Nov 2021 21:56:53 +0000 (21:56 +0000)
26 files changed:
include/common/buf.h
include/common/dir.h
include/common/font.h
include/common/grab-file.h
include/common/nodename.h
include/common/spawn.h
include/common/string-helpers.h
include/common/zfree.h
include/config/keybind.h
include/config/libinput.h
include/config/mousebind.h
include/config/rcxml.h
include/config/session.h
include/layers.h
include/resistance.h
include/ssd.h
include/theme.h
include/xbm/parse.h
include/xbm/tokenize.h
include/xbm/xbm.h
src/common/buf.c
src/common/dir.c
src/common/font.c
src/common/grab-file.c
src/common/nodename.c
src/resistance.c

index 3b75b985b0cd13e0b7374f35f15ea84608a9d8e8..a617167271362dbf974f4b30120dccc5f837cda3 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Very simple C string buffer implementation
  *
index e654664d9fd2750b51c47d72fc5e5c307ea02524..e756401f22b4adb34a2b0dea132a7bf6694e84c9 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_DIR_H
 #define __LABWC_DIR_H
 
index f282a9686827c028c475f4366855dff7678edefd..c7af6848f6dad1c6fc175bc8ada5f09ad7327a50 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_FONT_H
 #define __LABWC_FONT_H
 
index 38aaddc7d4346b86c2dc298004f945862e151000..a2a0953bd4734d95edff44d54349c5edde32dbd1 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Read file into memory
  *
index a54694fa47e4596d11f7d1361fba5b7f5edc5e68..15948eaf8b709aec6be8cc5a0db229172942a98f 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_NODENAME_H
 #define __LABWC_NODENAME_H
 
index 10394a1b92c31e7b121383f2dd2a14fc87214e51..db899589f9ee0a872951526776dd0c44fbf37e87 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_SPAWN_H
 #define __LABWC_SPAWN_H
 
index 286c216d259f17b8fc4aa4b5599e30d3498d9659..afe46fdd2ce2e6a8244ae9f8e4f3013f7658d2c1 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_STRING_HELPERS_H
 #define __LABWC_STRING_HELPERS_H
 
index e791b68bd3e97b8e9c81a3b0f564261ad7154f4f..30479fb4b1400d830594cd82535c4e19c163cacc 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_ZFREE_H
 #define __LABWC_ZFREE_H
 
index 136f2e717ac30256402e0065e7739726826b640f..62d9818b8d5d05e01cc6d71c21fb4af798e24f8a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_KEYBIND_H
 #define __LABWC_KEYBIND_H
 
index 248c8d64598007043b98b65458e2548b30b5b73a..256633cdeb7a35a73c6f3309970b9e4eeefb9944 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_LIBINPUT_H
 #define __LABWC_LIBINPUT_H
 
index cfd25b51f774e8c7752be04760f64cae329b3430..52ec16aedfc0beecf074e5b31e5dd229513baf88 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_MOUSEBIND_H
 #define __LABWC_MOUSEBIND_H
 
index cb4077bd95e1419157aa9ed2ec4378c6d6987767..39d1e5c090884b40c850d6562d4c206fda0aa0f5 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_RCXML_H
 #define __LABWC_RCXML_H
 
index 99203bf3b4ffc419802b777bba88116748c40366..674b6f76ef6cfef1138518f46b82ab8dd459a20b 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_SESSION_H
 #define __LABWC_SESSION_H
 
index d01a410231dcb03e2b9aefbb167e12153c6f68d0..35b410902e9afac9c8c9858fc188de1f89d0f8c3 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_LAYERS_H
 #define __LABWC_LAYERS_H
 #include <wayland-server.h>
index 1d79ed3a98234db3adc58ce9eb5ec58a1eb2dc6e..3251b0de5f40e839ab1871b7cbadf54df783c680 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __RESISTANCE_H
 #define __RESISTANCE_H
 #include "labwc.h"
index f29b19406e25b9f8871b3268a178f79e130ecf21..7b6c45085fb1425438226ebef971cdf1705c2e83 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_SSD_H
 #define __LABWC_SSD_H
 
index aa5fd8b18461f1f5e8077fde7490deb6867bab38..2f97c10b570dbdf64840b0584e5c936b795c7371 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Theme engine for labwc
  *
index 9739ee7c48a099d16ae2935cb60bb124bce54d21..a344ba84b69dd903c49b6984dfd997f0d01cc0df 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Parse xbm token to create pixmap
  *
index 019eadcb213c47f6196bd60d2fb0b889e9cf379b..4887ac2018e36b2ed9e067bd5b7a833dd06abc49 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * XBM file tokenizer
  *
index b63248716f107bcc1b47183549573d27f698dd4d..739d9a2cda06803d5e654b9c1e294541d0fc7794 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #ifndef __LABWC_XBM_H
 #define __LABWC_XBM_H
 
index a3a450d4d03aa124c2bb9c366218c4670d440a6c..5e908f9a67971b8f31b2e6ab265f200dac277dec 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 #include <ctype.h>
 #include "common/buf.h"
 
index 616c96da5498ba6994a5d707de18389e4d17bacb..395c013f210b31e376b5033155a9ba5df1b7714f 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Find the configuration and theme directories
  *
index 0e0b3243c3baa679bb0e15ed0b8eaa63ec5acd53..e5222d00f237cdb91bedf38226a21f6b0217658f 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 #include <cairo.h>
 #include <drm_fourcc.h>
 #include <pango/pangocairo.h>
index aad0b489b2d333515cd055a96ca4291f40835e23..daf5bf3ceda4477b2a2cfb47ae00b512f3ab95c1 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Read file into memory
  *
index 315ae6e1bfd1611870dbbcdb5c86f49964657d9d..486598697a610b4c444fd6d179f0ded771135972 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 #include <ctype.h>
 #include <string.h>
 #include "common/nodename.h"
index 8ada157f428b161cfc6a08df0ca217d83055cd24..11cdfaddef0b682c0d8066dd4490828e77910c2e 100644 (file)
@@ -15,7 +15,7 @@ is_within_resistance_range(struct edges view, struct edges target,
 {
        if (view.left >= other.left && target.left < other.left
                        && target.left >= other.left - strength) {
-                flags->left = 1;
+               flags->left = 1;
        } else if (view.right <= other.right && target.right > other.right
                        && target.right <= other.right + strength) {
                flags->right = 1;