Commit graph

183 commits

Author SHA1 Message Date
Bastien Dejean
931e735e97 Always use BUFSIZ 2012-10-04 13:59:05 +02:00
Bastien Dejean
ad7dfb9776 Address the non-portability of the PRINTF macro 2012-10-04 11:49:23 +02:00
Bastien Dejean
a8562891d3 Empty rsp after sending it
Since some functions still use *strcat* (e.g. *dump_tree*), it is
necessary to empty rsp after filling it. This is a temporary fix.
2012-10-04 11:38:23 +02:00
Bastien Dejean
26cdd8505d By default, don't produce a debug executable 2012-10-03 23:06:31 +02:00
Bastien Dejean
94ab18c49c Remove trailing new line in response
Some functions, e.g. *dump_tree*, will end *rsp* with a new line and
*bspc* already takes care of that.
2012-10-03 23:00:03 +02:00
Bastien Dejean
5cf4622695 In that particular case, strcmp is safe
No need to worry about strcmp's safety here, since cmd is guaranteed to be
null-terminated.
2012-10-03 22:49:05 +02:00
Bastien Dejean
46e8061d91 Apply the project coding style to the remote code 2012-10-03 22:44:25 +02:00
Bastien Dejean
c495a084e6 Merge pull request #6 from c00kiemon5ter/debug
handle debug messages
2012-10-03 11:55:10 -07:00
Bastien Dejean
a5c8fd6c1c Merge pull request #5 from c00kiemon5ter/warning
fix warining about possible unintitialized variables
2012-10-03 11:52:59 -07:00
Ivan Kanakarakis
3f914c7297 separate rules for debug and stripped binaries 2012-10-03 20:53:16 +03:00
Ivan Kanakarakis
dac696d74d corerctly handle debug messages 2012-10-03 20:50:37 +03:00
Ivan Kanakarakis
c506815d81 fix warining about possible unintitialized variables 2012-10-03 20:48:40 +03:00
Bastien Dejean
1c404cc3f6 Merge pull request #4 from c00kiemon5ter/client
Rework Client
2012-10-03 10:40:02 -07:00
Ivan Kanakarakis
de3742c74c update Makefile - remove misc and include helpers 2012-10-03 20:08:02 +03:00
Ivan Kanakarakis
a7201deca9 update wm to use helpers 2012-10-03 20:07:33 +03:00
Ivan Kanakarakis
55d347c6ac update client to use helpers 2012-10-03 20:07:08 +03:00
Ivan Kanakarakis
19a24f2c0d merge misc with helpers 2012-10-03 20:06:10 +03:00
Ivan Kanakarakis
66d43cf4af rework error message on number of arguments 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
ab93af0df6 no need for excplicit initialization
msg is nul-terminated by snprintf
rsp is nul-terminated manually
2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
7614a51b3c remove trailing space if one 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
50ef93758a store msglen to use it, instead of calling strlen repeatedly 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
e3ec748bce bugfix: len should be decremented by n not offset 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
2d2f5aead7 response should not contain a new line - response is a common string 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
e657198953 no need for an EMPTY_RESPONSE 2012-10-02 21:54:02 +03:00
Ivan Kanakarakis
f48ff335c1 rework bspc.c
fix potential buffer overflows
do error checking on all funcs
2012-10-02 21:54:01 +03:00
Bastien Dejean
23ecdad3d9 Merge pull request #3 from c00kiemon5ter/bool
bool is a real type
2012-09-30 09:45:46 -07:00
Ivan Kanakarakis
e31accb4b8 bool is a real type 2012-09-30 18:54:04 +03:00
Bastien Dejean
962403f325 Don't block window activation when desktop differ 2012-09-29 21:42:15 +02:00
Bastien Dejean
fbcd7c5d65 Take into consideration all unmap events
Fontforge needs it.
2012-09-29 17:43:11 +02:00
Bastien Dejean
eaba8c6715 Revert previous commit 2012-09-29 17:32:22 +02:00
Bastien Dejean
b9cb79f55d Rules: switch to the given desktop 2012-09-29 17:18:45 +02:00
Bastien Dejean
38316b61a0 Update vacant state when swapping nodes 2012-09-29 16:40:47 +02:00
Bastien Dejean
177ea353c4 Wipe get atoms reply structures 2012-09-29 13:26:56 +02:00
Bastien Dejean
36140fe1c3 Try to address the potential buffer overflows 2012-09-29 11:57:41 +02:00
Bastien Dejean
e08cecaa05 Fix launchpanel link 2012-09-29 10:44:58 +02:00
Bastien Dejean
37ac736e64 Added panel script example 2012-09-29 10:43:38 +02:00
Bastien Dejean
b18ced50d1 Panel informations 2012-09-29 10:40:50 +02:00
Bastien Dejean
5c7f9299a5 New setting: "borderless_monocle" 2012-09-29 10:10:58 +02:00
Bastien Dejean
6e2e8094ac Never remove borders on floating windows 2012-09-28 22:46:45 +02:00
Bastien Dejean
0b68e16fc8 Remove window borders whenever possible 2012-09-28 22:39:32 +02:00
Bastien Dejean
289d1f5aaa New message: "kill" 2012-09-28 15:59:29 +02:00
Bastien Dejean
cf91c4cb5e Also update vacant state when unlinking nodes 2012-09-28 15:37:43 +02:00
Bastien Dejean
07fa8a6645 Remove vacant debug info in dump_tree 2012-09-28 15:24:03 +02:00
Bastien Dejean
59f1423731 Update vacant state in insert_node
Adding a new new node requires to update the vacant state of the focused
node's parent when the focus is itself vacant, otherwise we end up with
non-valid vacant states and windows will seem to be hidden.
2012-09-28 15:19:39 +02:00
Bastien Dejean
3c404e6bed Don't remove node in close_window
If the window doesn't respond to the WM_DELETE_WINDOW message, we'll end
up with an unmanaged window. Besides, nodes are already removed after
receiving the corresponding destroy notifications.
2012-09-28 14:37:22 +02:00
Bastien Dejean
e1330bfc34 Complete _NET_SUPPORTED root property 2012-09-28 13:58:03 +02:00
Bastien Dejean
7613bf6953 Off diagram caption 2012-09-27 11:02:42 +02:00
Bastien Dejean
5df99a71ed Removed the Lua dependency 2012-09-27 10:46:04 +02:00
Bastien Dejean
42f50c36fe Document new skip options 2012-09-26 12:12:36 +02:00
Bastien Dejean
350a2d86bd New message: "magnetise" 2012-09-26 12:11:45 +02:00