Commit Graph

41 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
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
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
Kris Maglione
678979319c Allow Mod+Mouse3 to resize windows and columns unidirectionally. 2011-09-15 14:07:51 -04:00
Kris Maglione
089bf7bba7 [wimenu] Add paste key binding. 2010-10-07 16:31:42 -04:00
Kris Maglione
ed809b8471 [menu] Add vertical mode. 2010-10-07 16:31:41 -04:00
Kris Maglione
65c8c8d536 Fix strcasestr. 2010-08-10 05:46:00 -04:00
Kris Maglione
bd9f907d88 [menu] Allow composed input. 2010-07-31 19:11:45 -04:00
Kris Maglione
6868022346 Fix quadrant(). Closes issue #210. 2010-07-21 10:08:01 -04:00
Kris Maglione
ccb962b2ea [9libs] Sync with plan9port. 2010-07-19 12:50:19 -04:00
Kris Maglione
63d4079b8a Allow alpha colors in the bar. 2010-07-19 09:30:52 -04:00
Kris Maglione
5a6c5c1b4d Set ignoreenter indiscriminantly. Closes issue #196. 2010-06-24 10:39:42 -04:00
Kris Maglione
2177aed027 Make sure a window has a visual before dereferencing it. Fixes issue #195. 2010-06-21 10:29:51 -04:00
Kris Maglione
262778dccc Fix some RGBA color bugs. 2010-06-20 15:59:27 -04:00
Kris Maglione
683b3ed895 Handle colormapped displays. 2010-06-20 14:24:04 -04:00
Kris Maglione
a33719f9d4 Allow colors to be specified in any form recognized by X, including rgba. 2010-06-18 10:57:42 -04:00
Kris Maglione
b223b27f70 Use IXP_ASSERT_VERSION macro. 2010-06-17 18:23:25 -04:00
Kris Maglione
ee9b547b38 Flush X output queue in event_preselect. 2010-06-14 10:46:46 -04:00
Kris Maglione
398533dfd1 Rearrange some things. 2010-06-14 10:30:23 -04:00
Kris Maglione
e5e4ff284d Fix last commit. 2010-06-11 23:48:29 -04:00
Kris Maglione
ff4fc9cee7 Require that clients be given permission to activate themselves. 2010-06-11 04:18:40 -04:00
Kris Maglione
20f317dd6a Add locale charset crud. 2010-06-06 05:07:24 -04:00
Kris Maglione
ec26a17464 Fix some tedious client unmap bugs. 2010-06-04 20:37:05 -04:00
Kris Maglione
fd930e89a6 Revamp color handling. Fixes issue #188. 2010-06-04 19:38:35 -04:00
Kris Maglione
abefbf048d [libstuff] Fix nsec(). 2010-06-04 18:15:11 -04:00
Kris Maglione
21f180b4ea Add 'continue' key to /rules. 2010-06-04 16:46:25 -04:00
Kris Maglione
625246858d Ping clients regularly to make the "unresponsive" message more responsive. Please notify me of any performance problems caused by this change. 2010-06-02 02:09:23 -04:00
Kris Maglione
fb1d7443a1 Fix randomly reverted files. 2010-06-02 01:30:44 -04:00
Kris Maglione
7da961ec6c Add group and default-tags keys to /rules.
Update issue #178
Status: Fixed
If you don't want grouping behavior for a client, set group=0 for
that client in /rules. This will inhibit the affinity for tags and
for columns.
2010-06-01 22:38:33 -04:00
Kris Maglione
e5e64f3eb4 [witray] Add partial DND proxy. 2010-06-01 20:09:25 -04:00
Kris Maglione
612b959af5 Fix printevent ButtonEvent output. 2010-05-30 19:27:56 -04:00
Kris Maglione
7344423cc4 Factor out some common code. Delete some stale code. 2010-05-29 14:10:31 -04:00
Kris Maglione
185fdef6f3 Send synthetic unmap events to affected windows, whatever their destination. This needs testing. (Fixes issue #184) 2010-05-28 15:51:00 -04:00
Kris Maglione
f36c830a49 Fix some bugs. 2010-05-27 22:10:14 -04:00
Kris Maglione
b4b5ff470b Allow chained event handlers. 2010-05-27 18:57:08 -04:00
Kris Maglione
0a97e9f542 Don't call getpid() for every window creation. 2010-05-27 17:37:50 -04:00
Kris Maglione
f70a4130bd [witray] Handle badly behavied clients. Closes issue #183. 2010-05-27 13:55:34 -04:00
Kris Maglione
88f0721673 Add witray system tray program. 2010-05-27 03:58:02 -04:00
Kris Maglione
e3fdbdb548 Improve wistrut and build it by default. Add wistrut and wihack man pages. 2010-05-24 15:17:09 -04:00
Kris Maglione
ae3c20b7ae Cleanup the top directory a bit. sed -i 's/\$\{([^{]+)\}/$(\1)/g' **/Makefile **/*.mk 2010-05-22 20:55:16 -04:00