Commit Graph

2831 Commits

Author SHA1 Message Date
David du Colombier d3b212ad29 lib/libstuff/x11/colors: fix initialization of CTuple in loadcolor
This error was reported by Valgrind:

==237870== Conditional jump or move depends on uninitialised value(s)
==237870==    at 0x484AF0E: bcmp (vg_replace_strmem.c:1221)
==237870==    by 0x40C9DB: update_imgs (div.c:117)
==237870==    by 0x40CB4C: div_update_all (div.c:138)
==237870==    by 0x420A0F: view_arrange (view.c:611)
==237870==    by 0x41F88C: view_update (view.c:337)
==237870==    by 0x418B59: message_root (message.c:686)
==237870==    by 0x42474D: ixp_srv_writectl (srv_util.c:232)
==237870==    by 0x41322E: fs_write (fs.c:513)
==237870==    by 0x423462: handlereq (request.c:321)
==237870==    by 0x422BFF: handlefcall (request.c:146)
==237870==    by 0x4240E8: handle_conns (server.c:118)
==237870==    by 0x42424C: ixp_serverloop (server.c:169)
2023-09-30 22:32:17 +02:00
David du Colombier c26eaf6bc5 replace egrep by grep -E
This fixes the following warning:

egrep: warning: egrep is obsolescent; using grep -E
2023-09-30 01:08:37 +02:00
David du Colombier 024f29d105 .github: fix order of build steps 2023-06-25 20:57:45 +02:00
David du Colombier e720b28418 fix clang warnings
This change fixes the following warnings:

cmd/wmii/div.c:80:6: warning: unsequenced modification and access to 'n'
cmd/wmii/message.c:231:7: warning: variable 'l' is used uninitialized whenever '&&' condition is false
cmd/wmii/message.c:240:7: warning: variable 'l' is used uninitialized whenever '&&' condition is false
2023-06-25 20:48:37 +02:00
David du Colombier c55871eab5 fix warning
This change fixes the following warning:

cmd/wmii/bar.c:149:20: warning: the comparison will always evaluate as ‘true’ for the address of ‘text’ will never be NULL
2023-06-25 20:44:07 +02:00
David du Colombier 455972bcd4 fix memset of struts in ewmh_getstrut 2023-06-25 20:40:52 +02:00
David du Colombier ff120c7fee move from Travis CI to GitHub Actions 2022-04-04 22:15:59 +02:00
David du Colombier 3acb239918 fix build with GCC 10 and upper
GCC switched default from -fcommon to -fno-common,
leading to the following compilation errors:

multiple definition of `argv0'
multiple definition of `display'
multiple definition of `scr'
multiple definition of `font'
multiple definition of `cnorm'
multiple definition of `csel'
multiple definition of `debugflag'
multiple definition of `debugfile'
multiple definition of `cursor'
multiple definition of `framehandler'
multiple definition of `NM'
2021-10-15 22:12:16 +02:00
David du Colombier 2d098b667d fix warning
include/stuff/util.h:109:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
include/stuff/util.h:109:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
2021-10-15 22:07:48 +02:00
David du Colombier c86f646bf0 update for new MIT license 2021-03-23 01:00:00 +01:00
David du Colombier d1acb57db2 fix warnings
This change fixes the following warnings:

lib/libstuff/x11/keys/parsekey.c:73:2: warning: ‘XKeycodeToKeysym’ is deprecated [-Wdeprecated-declarations]
cmd/strut/ewmh.c:23:27: warning: ‘sizeof’ on array function parameter ‘struts’ will return size of ‘Rectangle *’ {aka ‘struct Rectangle *’} [-Wsizeof-array-argument]
cmd/wmii/key.c:109:3: warning: ‘XKeycodeToKeysym’ is deprecated [-Wdeprecated-declarations]
cmd/wmii/dat.h:108:7: warning: comparison of constant ‘2’ with boolean expression is always false [-Wbool-compare]
2019-09-30 22:03:43 +02:00
David du Colombier 489c9e47f4 add libxinerama-dev and libxrandr-dev dependencies in Travis CI 2018-05-20 20:01:15 +02:00
David du Colombier 2a192aad12 rename README to README.md in Makefile
Fixes #1.
2018-05-19 23:04:43 +02:00
David du Colombier a0b47f292b fix build on Ubuntu 12.04
On Ubuntu 12.04, the build was failing with the following error:

cc -o wmii9menu.out wmii9menu.o -g -ldl -L../../lib -L/usr/lib ../../lib/libstuff.a ../../lib/libregexp9.a ../../lib/libbio.a ../../lib/libfmt.a ../../lib/libutf.a /usr/local/lib/libixp.a -lXinerama -lXrender -lX11 -lXrandr
/usr/bin/ld: ../../lib/libstuff.a(xft.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libdl.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libdl.so: could not read symbols: Invalid operation
2017-07-28 13:53:31 +02:00
David du Colombier 79b08e9409 add Coverity Scan to Travis CI 2017-07-28 13:35:42 +02:00
David du Colombier a8c2f5a350 add build badges 2017-03-31 13:19:12 +02:00
David du Colombier 0291d502fe move README to README.md 2017-03-31 13:09:57 +02:00
David du Colombier 0cc10e4f02 add build badges 2017-03-31 12:43:31 +02:00
Andrew Shadura 56b3a14f57 Fix the patch in LD_PRELOAD for wihack 2013-12-09 17:43:36 +01:00
Kris Maglione 396331174f Rebuild wimenu.1 2014-08-02 15:22:00 -07:00
Andrew Shadura f68672b108 Fix spelling in manpages. 2013-12-09 17:43:36 +01:00
Andrew Shadura 47fefbbc95 Fix Notice command. 2013-12-09 17:43:36 +01:00
Kris Maglione 4606648a38 Prevent .depends rules from interfering with default make target. 2014-06-04 00:17:57 -07:00
Kris Maglione 7e10227936 Keep regexp clients on the same screen when attaching to new view. 2014-06-03 22:03:01 -07:00
Kris Maglione 65ea0d29bd Treat cloned/subsumed screens as one. 2014-06-03 21:54:07 -07:00
Kris Maglione 7a083fffa2 Run wipescreens on Screenchange event in python/wmiirc. 2014-06-03 21:41:40 -07:00
Kris Maglione 902328e77d Add command to cleanup old screens after monitor disconnect. 2014-06-03 21:38:41 -07:00
Kris Maglione 828889fd98 Work around focus drawing issue in newer Xorg versions. 2014-06-03 19:58:58 -07:00
Kris Maglione 8cc2df7ab8 Suppress duplicate ScreenChange events. 2012-04-13 22:37:30 -04:00
Kris Maglione abc4b2e285 Add ScreenChange event. 2012-04-08 14:07:38 -04:00
Kris Maglione e8d9e73d15 Fix witray corner case. Closes issue #246. 2011-10-20 05:29:03 -04:00
Kris Maglione 9ad3690ed9 Move pkg-config libs after other LDFLAGS. Closes issue #245. 2011-10-20 04:55:58 -04:00
Kris Maglione 5a4f28cb58 Add doc/mkfile for building wmii.pdf with an optional MAINFONT variable for building on systems without LinoType's Palatino font. 2011-09-27 02:13:58 -04:00
Suraj N. Kurapati dbee2c0097 remove nonexistent "bar off" command from manual 2011-09-23 20:35:20 -07:00
Kris Maglione 6e288e6611 [tray] Add a horrible workaround for broken Qt systray icon implementation. Closes issue #228. 2011-09-20 02:49:06 -04:00
Kris Maglione 0a694fe4ea [wmiir] Flush conversion buffer on short read. Closes issue #235. 2011-09-19 23:45:42 -04:00
Kris Maglione 6594959ce8 Deal with a particular Qt systray replacement bug. Cleanup a bit more politely on sigterm/sigint. 2011-09-19 22:06:50 -04:00
Kris Maglione 7eb2bef1bd Add -n flag to witray to opt out of replacing existing systray. 2011-09-19 20:24:32 -04:00
Kris Maglione 67cb8d196e Remove some dead code. 2011-09-19 16:49:52 -04:00
Kris Maglione fab45e323f Fix compositing issue per DRDarkRaven. Closes issue #226. 2011-09-19 16:39:16 -04:00
Kris Maglione 0658d3fc2e Remove broken support for local_events. Closes issue #229. 2011-09-19 16:34:03 -04:00
Kris Maglione ecaa8861c1 Closes issue #222. 2011-09-19 16:25:11 -04:00
Andrew Shadoura d40f0a0c10 Fix XRandR segfault issue. Closes issue #231. 2011-05-31 05:25:14 +00:00
Kris Maglione e4ecfe1cb0 Merge. 2011-09-17 17:58:32 -04:00
Juan Pablo Aroztegi 594b9f508d Fixes issue #242 2011-09-17 23:37:16 +02:00
Kris Maglione 678979319c Allow Mod+Mouse3 to resize windows and columns unidirectionally. 2011-09-15 14:07:51 -04:00
Kris Maglione 57dbe8eb38 Don't collapse dock/menu/toolbar windows in float+stack mode. 2011-09-15 13:35:37 -04:00
Kris Maglione ff821dd113 Take into account bar and struts when placing floats. Closes issue #283. 2011-09-15 13:29:41 -04:00
Kris Maglione 708db8d88c Allow changing screen boundaries with Mod+Mouse3. 2011-09-15 13:22:17 -04:00
Kris Maglione 68673eb2b9 Fix focus issue after restart. 2011-09-15 12:38:16 -04:00