summaryrefslogtreecommitdiff
path: root/src/ChangeLog
blob: a8a712825dece1e1b25720d234c8811a10fab9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
2001-02-18  shawn  <sabetts@diggin.lamenet.tmp>

	* conf.h: restructured comments. Added #define for AUTO_CLOSE.

	* manage.c (unmanage): kills ratpoison when there are no more
	windows.

2001-02-17  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* manage.c (current_screen): Rename get_screen() and move to this
	file.
	
	* input.c (get_input): Remove screen_info as paramater.  Call
	current_screen() to get screen_info.

	* actions.c (get_screen): Remove.

2001-02-17  Gergely Nagy  <8@free.bsd.hu>

	* actions.c (goto_window_by_name, rename_current_window, command)
	(shell_command, switch_to, xterm_command): changed static char[100]s
	to dynamic char *s, as get_input() now supports this
	* input.h: reflect get_input change
	* input.c (get_input): use dynamically allocated strings

2001-02-15  Gergely Nagy  <8@free.bsd.hu>

	* getopt.c: fixed a warning

	* events.c (handle_key): use dynamically allocated strings

	* bar.c (display_msg_in_bar),
	* sbuf.c (xrealloc): changed an fprintf to PRINT_DEBUG

2001-02-15  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* list.c (save_mouse_position): changed declaration of mask to
	unsigned int
	(get_mouse_root_position): changed declaration of mask to unsigned
	int

	* actions.c (xterm_command): added new function.  Thanks to Ben
	Leslie <benno@sesgroup.net>
	(user_commands): added "xterm"
	(key_actions): added C-t C-! binding for "xterm"

	* messages.h (MESSAGE_PROMPT_XTERM_COMMAND): new message

2001-02-14  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* actions.h (generate_key_event): added prototype

	* actions.c (key_actions): added additional keybindings to include
	C- versions for all keys.
	(generate_key_event): added command

2001-02-13  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* bar.c (update_window_names): get indexes around current window
	text to pass to display_msg_in_bar
	(display_msg_in_bar): xor a rectangle around the text represented
	by mark_start and mark_end arguments

	* conf.h (BAR_FG_COLOR): changed to black
	(BAR_BG_COLOR): changed to white 
	(FONT_NAME): changed to 9x15bold
	(BAR_Y_PADDING): changed to zero
	(BAR_X_PADDING): changed to zero

	* data.h (struct screen_info): removed bold_gc

	* events.c (handle_key): can no longer over modify keystrokes
	(handle_key): updated call to display_msg_in_bar to take extra
	highlighting parameters.

	* main.c (init_screen): removed bold_color
	(XGCValues gv): made global

	* actions.h (user_command): new struct
	(argtype): new enumeration

	* actions.h: many updated prototypes

	* actions.c (key_actions): every command is now executed by
	calling command() with a string version of the command, rewrote
	this table to reflect that.
	(user_commands): new symbol table added, a mapping between strings
	and functions and arguments.
	(spawn): now handles commands with arguments by calling them
	through "/bin/sh -c"
	(get_screen): new function.

	* actions.c: all calls to display_msg_in_bar updated to call with
	2 additional highlight parameters.

	* actions.c (goto_win_by_name, rename_current_window, ...): most
	all user functions that need arguments will prompt the user for
	them, unless they are supplied.  Allows the same function to be
	used interactively or internally.
	
	* bar.h (display_msg_in_bar): updated prototype

	* bar.c (display_msg_in_bar): takes two additional int arguments
	which are offsets into the string describing which part of the
	text to draw highlighted.
	(update_window_names): highlight current window

2001-02-12  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* actions.c (spawn): will now execute commands with arguments by
	execl'ing through /bin/sh -c

2001-02-11  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* ratpoison.h: #include "sbuf.h"
	removed duplicate #include "messages.h"

	* Makefile.am (ratpoison_SOURCES): added sbuf.c sbuf.h

	* bar.c (calc_bar_width): removed function
	(update_window_names): now builds up the entire window list string
	in dynamic storage before printing the window list.  No longer
	displays the current window in a different colour.

2001-02-11  shawn  <sabetts@diggin.lamenet.tmp>

	* main.c (set_sig_handler): Added
	(main): Uses set_sig_handler() instead of signal()

	* manage.h (set_state): Added prototype

	* manage.c (send_configure): Now sends the window's x,y,width,height
	coordinates.
	(set_state): Added

	* events.c (map_request): Calls set_state when mapping an unmapped
	window.

	* actions.c (maximize_transient): takes an rp_window as the
	argument. Removed code to handle void *data. Incremental resizing
	only happens if the maximum size isn't set. Removed actual X
	maximization code.
	(maximize): Moved meat to maximize_normal().

2001-02-10  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* ratpoison.h: #include "messages.h"

	* list.h (goto_window_number): moved prototype to actions.h

	* actions.h (goto_window_number): added prototype
	(goto_window): removed prototype
	
	* Makefile.am (ratpoison_SOURCES): added messages.h

	* actions.c (prev_window): display correct message when there is
	no other window or there are no windows at all.
	(next_window): display correct message when there is no other
	window or there are no windows at all.
	(key_actions): all number keys call goto_window_number with an
	argument instead of a dedicated function.
	(key_actions): XK_exclam now runs execute_command

	* actions.c: replaced all user message strings with #define'd
	messages.

	* actions.h (goto_window): removed
	(goto_window_0): removed
	(goto_window_1): removed
	(goto_window_2): removed
	(goto_window_3): removed
	(goto_window_4): removed
	(goto_window_5): removed
	(goto_window_6): removed
	(goto_window_7): removed
	(goto_window_8): removed

2001-02-10  shawn  <sabetts@diggin.lamenet.tmp>

	* communications.c (send_restart, send_kill): Added

	* ratpoison.h: includes communications.h

	* main.c (send_restart, send_kill): Moved to communications.c

	* list.c (get_mouse_root_position): Added
	(add_to_window_list): Initialize new rp_window fields
	(save_mouse_position): Added
	(set_active_window): Added code to save and restore the position
	of the mouse

	* events.c (property_notify): Added code to listen for a
	WM_TRANSIENT_FOR property change.

	* data.h (struct rp_window): Added transient, transient_for, mouse_x, mouse_y.

	* actions.c (maximize_transient): Added
	(maximize): Added code to handle transient windows differently

	* Makefile.am (ratpoison_SOURCES): Added communications.h and communications.c

2001-01-02  shawn  <sabetts@diggin.lamenet.tmp>

	* communications.c (send_restart): moved from main.c
	(send_kill): moved from main.c

	* main.c: Removed send_kill, send_restart

	* input.h: Added copyright notice.

	* input.c: Added copyright notice.

	* actions.c: Added copyright notice.

2001-02-04  Ryan Yeske  <rcyeske@cut.hotdog.tmp>

	* actions.c (prev_window): do not set active window when
	recursing.
	(next_window): do not set active window when recursing.

2001-01-28  Ryan Yeske  <rcyeske@soya.hotdog.tmp>

	* actions.c: changed rename_current_window key to `A', bound `a'
	to show_clock

2001-01-02  shawn  <sabetts@diggin.lamenet.tmp>

	* actions.h (show_clock): added prototype

	* actions.c (show_clock): added

2000-12-15  shawn  <sabetts@badbox.secure.basis.org>

	* actions.c (maximize): increment size in hints->width_inc and
	hints->height_inc intervals

	* manage.c (manage): set the dimension members of the rp_window struct

2000-12-15  shawn  <sabetts@diggin.lamenet.tmp>

	* manage.c (manage): added ColormapChangeMask and
	StructureNotifyMask to events listened for on managed windows.

	* main.c (main): propagated changes to set_active_window usage

	* events.c: propagated changes to set_active_window usage

	* data.h (struct rp_window): Added colormap member

	* list.c (set_active_window): Installs colormap
	(set_active_window): sets rp_current_window to window passed in as
	parameter

	* actions.c (prev_window): No longer uses rp_current_window to
	keep track of state
	(next_window): No longer uses rp_current_window to keep track of
	state

	* list.c (add_to_window_list): sets member colormap to the
	DefaultColormap

	* manage.c (update_window_name): fixed memory leak. Not freeing
	the win->name before updating it.
	(manage): Gets the colormap now.

	* list.c (add_to_window_list): Added init code for `hints'

	* events.c (property_notify): Added handler for XA_WM_NORMAL_HINTS.

	* data.h (struct rp_window): Added XSizeHints member

	* actions.c (maximize): Adhere to the window's Size Hints

2000-12-14  shawn  <sabetts@diggin.lamenet.tmp>

	* manage.h (update_normal_hints): added prototype

	* manage.c (update_normal_hints): added

	* list.c (add_to_window_list): added comment describing function

2000-12-13  shawn  <sabetts@diggin.lamenet.tmp>

	* actions.c: removed gross tabs from key_actions definition. Add
	C-t space to go to next window.

2000-12-09  shawn  <sabetts@diggin.lamenet.tmp>

	* data.h (struct rp_window): added x, y, width, height, border;

	* events.c (configure_request): Now honours request, but then
	maximizes it afterwards.
	(configure_request): updates the rp_window's geometry fields

	* manage.c (manage): commented out XMoveResizeWindow call
	(send_configure): added

	* actions.h (maximize): added prototype

	* actions.c (maximize): added

	* input.c (cook_keycode): properly handle LockMask
	(cook_keycode): updated comments

	* input.h: added prototype for keysym_to_string

	* input.c (keysym_to_string): added

	* bar.c (show_bar): update_window_names(s) is called whether the
	bar is raised or not.

	* conf.h: Added BAR_Y_PADDING BAR_X_PADDING

	* list.c (goto_window_name): return success or failure

	* list.h: updated prototype for goto_window_name

	* events.c (handle_key): Added a message indicating an unbound
	key.

	* bar.c (display_msg_in_bar): added
	(update_window_names): uses BAR_X_PADDING instead of `5'
	(update_window_names): Updated BAR_PADDING to BAR_Y_PADDING

	* input.c (cook_keycode): mod is now an usigned int
	(read_key): Ignores modifier keys. Now returns keysym and
	modifiers.
	(get_input): Updated BAR_PADDING to BAR_Y_PADDING and
	BAR_X_PADDING.

	* events.c (handle_key): uses read_key instead of XMaskEvent to
	read a key.

	* actions.c (goto_window_number): window list is displayed on failure.
	(bye): added
	(switch_to): added
	(execute_command): no longer seg faults when no windows exist.

2000-12-03  shawn  <sabetts@diggin.lamenet.tmp>

	* input.h (cook_keycode): added prototype

	* actions.c: key_actions now uses the #define'd keysyms from X11/keysym.h

	* events.c (handle_key): calls cook_keycode() before processing the keysym.

	* input.c (read_key): calls cook_keycode() before returning the keysym
	(cook_keycode): added.

2000-12-01  shawn  <sabetts@diggin.lamenet.tmp>

	* list.c (find_window_by_name): added check to make sure the
	window's state is not STATE_UNMAPPED.

2000-11-27  shawn  <sabetts@diggin.lamenet.tmp>

	* events.c (handle_key): Code to generate the prefix event has
	been moved to generate_prefix().

	* actions.h (toggle_bar): added prefixes for generate_prefix, and
	abort_keypress.

	* actions.c (generate_prefix): added.
	(abort_keypress): added.

2000-11-04  Ryan Yeske  <rcyeske@vcn.bc.ca>

	* Makefile.am (ratpoison_SOURCES): added getopt.c, getopt1.c and
	getopt.h

2000-10-30  Ryan Yeske  <rcyeske@vcn.bc.ca>

	* actions.h (execute_command): added prototype

	* actions.c (rename_current_window): added test to skip renaming
	if user entered an empty string
	(execute_command): added command
	(key_actions): execute_command is called by pressing ':' 

2000-10-30  shawn  <sabetts@badbox.secure.basis.org>

	* conf.h: added HIDE_MOUSE

2000-10-24  Ryan Yeske  <rcyeske@vcn.bc.ca>

	* bar.c (bar_x): rightmost border is no longer off screen

2000-10-20  shawn  <sabetts@badbox.secure.basis.org>

	* events.c (key_press): fixed MODIFIER_PREFIX bug

2000-10-19  Ryan yeske  <rcyeske@van.gobasis.com>

	* manage.c (unmanaged_window): added.

	* conf.h (PADDING_LEFT, PADDING_TOP, PADDING_RIGHT,
	PADDING_BOTTOM, UNMANAGED_WINDOW_LIST): added.  Windows listed in
	UNMANAGED_WINDOW_LIST will not be managed.  Space reserved for
	unmanaged windows can be defined with PADDING_*

2000-10-19  shawn  <sabetts@badbox.secure.basis.org>

	* manage.c (get_window_name): added

2000-10-17  shawn  <sabetts@vcn.bc.ca>

	* events.c (configure_request): resize windows to the max-1. Call
	XConfigureWindow as well as XSendEvent.

	* manage.c (scanwins): Now only maps visible windows

	* conf.h: Removed keystroke related defines

	* actions.c: Moved all key activated functions here. Added
	key_actions array.

	* events.c (unmap_notify): now properly unmaps windows

	* data.h: added ignore_badwindow

	* main.c (handler): added ability to ignore BadWindow errors

2000-10-15  shawn  <sabetts@vcn.bc.ca>

	* main.c, data.h, events.c: Added ability to kill and hup running
	ratpoison processes.