Commit graph

845 commits

Author SHA1 Message Date
Reginald Kennedy
9e02feddd5 Add details to man page on how to bind non-latin characters.
From: Rovanion Luckey <rovanion.luckey@gmail.com>

ok marco
2012-05-14 23:04:18 +08:00
Reginald Kennedy
4501b122e6 Fix segfault caused by workspaces above 10 not being initialized. 2012-04-20 14:18:21 +08:00
Reginald Kennedy
95c1334554 Add default keybindings for the new workspaces to non-us keyboard layout files.
Fix typo in man page.

ok marco
2012-04-10 03:32:04 +08:00
Reginald Kennedy
b8de26993f Increase workspace hard limit to 22.
Add new keybindings for workspaces 11 through 22.
Defaults for ws_n and mvws_n are NOD+(F1-F12) and MOD+Shift+(F1-F12),
respectively.

Add a new configuration option 'workspace_limit' to make it possible for
the user to adjust the number of available workspaces.  Default is 10.

ok marco
2012-04-08 06:56:13 +08:00
David Hill
c656e81a5b update authors 2012-02-27 23:16:39 -05:00
David Hill
eaf3f32352 cleanup 2012-02-27 22:50:05 -05:00
Marco Peereboom
63341d669c Prepare for release 1.0.0. 2012-02-17 11:12:33 -06:00
Marco Peereboom
f7f28f5248 fix a real issue of an uninitialized variable, found by clang and we are now clang clean 2012-02-17 10:57:29 -06:00
Marco Peereboom
c57f45c70c couple unused vars and bad pointer checks, from clang 2012-02-17 10:27:40 -06:00
Marco Peereboom
0cf556e889 fix 2 clang -analyze warnings 2012-02-17 10:20:06 -06:00
Marco Peereboom
bec4acf876 make buildversion optional, from drahn 2012-02-17 10:07:06 -06:00
Marco Peereboom
1e065dd313 better fix from davec 2012-02-17 09:53:50 -06:00
Marco Peereboom
732f22de72 attempt to print the git version in the version string 2012-02-17 09:50:21 -06:00
Marco Peereboom
62e67e5344 fix freebsd makefile from Niclas Zeising <zeising@daemonic.se> 2012-02-17 08:01:33 -06:00
Marco Peereboom
4ca58fe44e make osx compile again 2012-02-16 09:22:47 -06:00
Lawrence Teo
0f35da6cb6 Adjust copyright years and authors list on man page. 2012-02-15 23:45:50 -05:00
Marco Peereboom
7aaace3eec remove scrotwm here too 2012-02-15 17:44:10 -06:00
Marco Peereboom
ce26d85ef8 ln spectrwm to scrotwm for now 2012-02-15 17:39:14 -06:00
Marco Peereboom
5a4544daa6 ln spectrwm to scrotwm for now 2012-02-15 17:26:29 -06:00
Marco Peereboom
ff78cd9edd try multiple config files 2012-02-15 17:26:10 -06:00
Marco Peereboom
e468d771f6 try scrotwm.conf when spectrwm.conf isn't found 2012-02-15 16:14:56 -06:00
Marco Peereboom
e83f3b7908 rename scrotwm to spectrwm 2012-02-15 14:09:13 -06:00
Marco Peereboom
34e5a4f61d add lteo and tcunha to copyright 2012-02-15 13:22:11 -06:00
Reginald Kennedy
99a8c34790 Fix setting of window property strings to use actual number of
elements rather than char array size.

ok marco
2012-02-13 23:32:31 +08:00
Reginald Kennedy
40c7235602 Remove stray tabs and end of line spaces. 2012-02-11 09:45:09 +08:00
Reginald Kennedy
e8cabbe002 Fix include path for Linux rb tree, add slots for FreeBSD tree.h and others.
Remove stray spaces.
2012-02-11 09:42:01 +08:00
marco
d9ed576fa1 add rb stuff to linux 2012-02-10 19:31:11 -06:00
Tiago Cunha
70be7117b8 Use a red-black tree for the keys. 2012-02-09 17:19:00 +00:00
Reginald Kennedy
f87ef795e2 Remove unused vars.
ok marco
2012-02-09 20:53:48 +08:00
Reginald Kennedy
641cdb0fc6 Fix erroneous keysym for flip_layout in the example key binding configurations. 2012-02-09 17:20:14 +08:00
Lawrence Teo
6dcc4fb8cd Fix height_shrink key binding; use .Xr for xprop(1).
From: Andrea Bolognani <eof@kiyuko.org>

ok marco
2012-02-08 22:19:38 -05:00
marco
961486fa30 fix se layout, from Niclas Zeising <zeising@daemonic.se> 2012-02-08 18:14:59 -06:00
Tiago Cunha
9318d27d45 Remove redundant checks.
Now that the focus_magic function is responsible for updating the
status-bar when there are no windows, remove superfluous checks from a
couple of places that were previously needed.

Fixed a typo in a comment while there.
2012-02-08 22:36:53 +00:00
Tiago Cunha
f0280ca20a Clear status-bar when iconifying the last window.
Make the focus_magic function responsible for updating the status-bar
output when there is no window available. Now, any window related output
gets cleared when iconifying the last available window.
2012-02-08 22:36:53 +00:00
Tiago Cunha
4943ed1dfe Add status-bar wrapper function.
Instead of checking if any of the window related enabled options are set
and updating the status-bar over and over again, delegate that job to a
small wrapper function.
2012-02-08 22:36:53 +00:00
Reginald Kennedy
1bee50dce7 Add flip_layout binding to all keyboard layout examples.
ok marco
2012-02-09 04:10:55 +08:00
Marco Peereboom
4fb8103b11 Prepare for release 0.11.0. 2012-02-08 12:31:58 -06:00
Reginald Kennedy
043047d548 Add flip_layout keyinding.
Swap the master and stacking areas of the horizontal and vertical
layouts.

Default binding: M-S-\

ok marco
2012-02-08 08:47:34 +08:00
Tiago Cunha
b1d1bb4360 Use a tail queue for the spawns.
Instead of hand rolling a dynamic array, just use a tail queue by taking
advantage of the queue(3) macros.

Simplifies the code, since there's no need to (re)allocate the array and
to keep track of its size and length.

ok marco
2012-02-07 23:35:14 +00:00
Tiago Cunha
739a5e6e32 Remove stray spaces.
Prompted by marco.
2012-02-07 23:11:34 +00:00
Tiago Cunha
d13c5e2aa8 Fallback to WM_NAME if _NET_WM_NAME fails.
If requesting the window name with _NET_WM_NAME fails, fallback to
requesting it with WM_NAME. While here, make the property request
through the get_property wrapper function.

Makes scrotwm show the titles for xterm (and probably others) windows.
2012-02-07 23:11:33 +00:00
Tiago Cunha
ea00ae6c78 Use the global display variable. 2012-02-07 23:11:33 +00:00
Tiago Cunha
f4dcc22a55 Remove unused length parameter. 2012-02-07 23:11:33 +00:00
Tiago Cunha
79e879c9ee Remove unneeded atom parameters.
Since the function that retrieves the window title always uses the same
atoms, do not pass them as parameters, but use them internally, instead.
2012-02-07 23:11:33 +00:00
Tiago Cunha
bc0953a3ce Update status-bar when focusing.
While focusing on a window, update the status-bar if any of the window
related enabled options is set, so that its output matches reality.

Easily reproducible by firing up scrotwm and opening a new window.

ok marco
2012-02-07 23:08:36 +00:00
Tiago Cunha
fe1d4ab5ca Use the warn(3) functions instead of fprintf(3).
Rather than using fprintf(3) to display a formatted error message on
stderr (and, occasionally in conjunction with strerror(3)), use the
warn(3) functions. A few cases that also used perror(3) were changed
accordingly, as well.

While there, remove an extra fprintf(3) call in conf_load which is
already followed by an err(3).

ok marco
2012-02-07 23:05:26 +00:00
Tiago Cunha
20f6684161 NUL terminate the strftime(3) buffer.
SUS says that if there wasn't enough space to copy the expanded format
to the buffer, strftime(3) will not NUL terminate it. It would work on
some implementations (eg on OpenBSD), though.

Therefore, take advantage of the return value to prevent using the
character array with unspecified contents with a very large clock
format.

Besides, the strlcat(3) call below relies on the destination buffer
being NUL terminated.

ok marco
2012-02-07 23:02:03 +00:00
Reginald Kennedy
684fc5a3a6 When responding to a ConfigureRequest event without reconfiguring the window,
take into account WM_SIZE_HINTS (if set) when generating the ConfigureNotify
response.

This helps workaround picky apps.

ok marco
2012-02-04 01:58:52 +08:00
Marco Peereboom
39ac9d5d1d be more paranoid when freeing memory and some whitespace fixes 2012-02-03 08:01:09 -06:00
Tiago Cunha
404f5207ef Fix indentation when defining variables.
Prompted by marco.
2012-02-02 23:43:27 +00:00