Reginald Kennedy [Wed, 1 Feb 2012 20:50:43 +0000 (04:50 +0800)]
Fix response to applications when windows are not reconfigured as requested.
This gives applications a chance to redraw the window contents to the actual, unchanged, window geometry.
Fixes issues with gvim, emacs, firefox, feh and many other applications.
ok marco
Reginald Kennedy [Sat, 28 Jan 2012 17:29:31 +0000 (01:29 +0800)]
scrotwm.c:
- Improve debug output.
- Improve code styling compliance.
- Use the X,Y,WIDTH,HEIGHT macros where applicable on ws_win and swm_region objects.
- Fix handling of _NET_MOVERESIZE_WINDOW client message.
ok marco
Lawrence Teo [Thu, 26 Jan 2012 03:41:54 +0000 (22:41 -0500)]
Add the missing ws_prior key binding to the keyboard mapping files.
Lawrence Teo [Thu, 26 Jan 2012 03:19:21 +0000 (22:19 -0500)]
Fix Mdocdate error that I made (it's no longer 2011!).
Reginald Kennedy [Wed, 25 Jan 2012 16:37:03 +0000 (00:37 +0800)]
Fix 'jump' when moving a non-floated window with the mouse.
ok marco
Tiago Cunha [Wed, 25 Jan 2012 01:06:03 +0000 (01:06 +0000)]
Document the special MOD modifier key.
ok lteo marco
Niclas Zeising [Mon, 23 Jan 2012 12:35:16 +0000 (13:35 +0100)]
Clean up properly in linux/Makefile.
ok marco
Niclas Zeising [Mon, 23 Jan 2012 11:59:47 +0000 (12:59 +0100)]
Fixes to the FreeBSD Makefile.
- Remove X11BASE and replace it with LOCALBASE, since the former is
deprecated.
- Silently ignore if included files are not found. This way we do not
depend on the FreeBSD ports tree being installed.
- Add definitions for LOCALBASE and PREFIX in case they are not given
from the included files.
- Change MANDIR to ${PREFIX}/man instead of ${PREFIX}/share/man, to
better match reality.
ok marco
Tiago Cunha [Mon, 23 Jan 2012 19:17:16 +0000 (19:17 +0000)]
Plug memory and file descriptor leak.
Now that asprintf(3) return value is checked in conf_load(), make the
code release the memory returned by fparseln(3) and fclose(3) the
configuration file FILE pointer.
Style nit fixed while there.
ok marco
marco [Sun, 22 Jan 2012 15:44:40 +0000 (09:44 -0600)]
broken space bar
Reginald Kennedy [Sat, 21 Jan 2012 19:46:46 +0000 (03:46 +0800)]
Ignore window crossing events that are generated when the cursor is not actually moved between windows.
Reginald Kennedy [Sat, 21 Jan 2012 19:38:04 +0000 (03:38 +0800)]
Moving and resizing floating windows with the mouse is now based on click location.
Floating windows are constrained to region on move/resize operations.
Resize center is now based on window center, instead of region center.
Fix several uninitialized/unused variable warnings.
Handle asprintf return value in conf_load.
Lawrence Teo [Fri, 20 Jan 2012 02:43:04 +0000 (21:43 -0500)]
Plug memory and file descriptor leaks in conf_load().
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Sun, 15 Jan 2012 19:53:00 +0000 (14:53 -0500)]
Make uniconify work on windows with non-ASCII titles.
ok marco
Lawrence Teo [Fri, 13 Jan 2012 01:37:47 +0000 (20:37 -0500)]
search_win's key binding should be M-f on the manpage.
Reported by user jrh via the scrotwm forum (thank you!).
Marco Peereboom [Wed, 11 Jan 2012 18:42:56 +0000 (12:42 -0600)]
Prepare for release 0.10.0.
Lawrence Teo [Tue, 10 Jan 2012 01:30:00 +0000 (20:30 -0500)]
Fix a crash when mvws_n is used in an empty workspace.
mvws_n invokes send_to_ws(), which in turn calls focus() to focus on
the previous window before sending the current window to the desired
workspace. The TAILQ_PREV() call in focus() will fail if there are no
windows in the current workspace.
This commit adds a safeguard to focus() by ensuring that the list of
windows in the current workspace is not empty and that there is at
least one uniconified window to focus on before proceeding.
This commit also modifies send_to_ws() to set r->ws->focus to NULL if
there are no more windows in the workspace after sending the current
window to another workspace. This fixes an odd behavior where you can
"summon" a window that you have previously moved to another workspace,
even though you are in an empty workspace.
Closes FS#191
ok marco
Lawrence Teo [Thu, 5 Jan 2012 02:32:16 +0000 (21:32 -0500)]
Skip iconified windows correctly.
This fixes a bug where the focus_next and focus_prev actions will get
"stuck" when an iconified window is in the way.
ok marco
Lawrence Teo [Thu, 29 Dec 2011 02:38:44 +0000 (21:38 -0500)]
Fixes an oversight so that BUILDVERSION gets properly defined, as well
as remove some debug stuff I forgot to remove earlier.
From: Niclas Zeising <zeising@daemonic.se>
ok marco
Lawrence Teo [Tue, 13 Dec 2011 04:13:54 +0000 (23:13 -0500)]
Makefile and util.h for FreeBSD.
From: Niclas Zeising <zeising@daemonic.se>
ok marco
Lawrence Teo [Tue, 13 Dec 2011 04:08:36 +0000 (23:08 -0500)]
Reformat CONFIGURATION FILES section for better readability.
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Sun, 11 Dec 2011 03:20:42 +0000 (22:20 -0500)]
Improve status bar refresh code:
- Refresh status bar (if name/class/title are enabled) when no window
can be focused, so that the name/class/title will be cleared.
- Handle window class/name change events to refresh the bar when appropriate.
- Move XA_WM_NORMAL_HINTS into the '#if 0' block, since the status bar
should not need to be updated for that event.
From: Splex <splecks@rejii.com>
ok marco
Lawrence Teo [Thu, 8 Dec 2011 02:53:12 +0000 (21:53 -0500)]
Make error messages use errno when available.
While here, remove a few newlines that are already appended by err(3).
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Wed, 7 Dec 2011 03:29:13 +0000 (22:29 -0500)]
.gitignore
Lawrence Teo [Wed, 7 Dec 2011 03:19:27 +0000 (22:19 -0500)]
Remove BUGS section, since our dependence on dmenu is no longer
considered a bug. :)
ok marco
Lawrence Teo [Wed, 7 Dec 2011 03:15:56 +0000 (22:15 -0500)]
scrotwm_se.conf: Swedish keyboard_mapping file.
From: Niclas Zeising <zeising@daemonic.se>
Lawrence Teo [Tue, 6 Dec 2011 03:46:24 +0000 (22:46 -0500)]
scrotwm_fr_ch.conf: Swiss French keyboard_mapping file.
From user tmow via the scrotwm forum:
https://opensource.conformal.com/fluxbb/viewtopic.php?id=283
ok marco
Lawrence Teo [Mon, 5 Dec 2011 03:15:06 +0000 (22:15 -0500)]
Revert previously removed variable that is needed in debug mode.
Spotted by Splex <splecks@rejii.com>
Lawrence Teo [Sun, 4 Dec 2011 03:35:59 +0000 (22:35 -0500)]
Remove set but unused variables.
From thib
ok marco
Lawrence Teo [Thu, 1 Dec 2011 03:44:25 +0000 (22:44 -0500)]
Fix invalid action: reset_layout should be stack_reset.
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Wed, 30 Nov 2011 02:49:27 +0000 (21:49 -0500)]
Change search_win's key binding to M-f since M-s is already taken by
screenshot_all (oops!)
Spotted by thib.
While there, change the example key binding for firefox from M-f to
M-S-b.
"groovy" marco
Thordur Bjornsson [Tue, 29 Nov 2011 23:39:31 +0000 (23:39 +0000)]
Work around dmenu version incompatibilities.
Older versions of dmenu (4.2.1) do not send the newline character
long with the response while newer versions (4.4.2) do, this
causes mild bugs (last char in the name of the workspace gets
lobbed off for example). Fix it by sanitizing the string in the
response handler.
Tested by me & lteo with different dmenu version.
OK lteo, marco
Lawrence Teo [Tue, 29 Nov 2011 04:41:37 +0000 (23:41 -0500)]
Search windows in the current workspace.
Pressing M-s will show a little numbered box on the top-left of each
window. You can switch focus to the desired window by typing its number
and pressing Enter. This lets you focus on a window instantly without
needing to cycle through other windows.
ok marco
Lawrence Teo [Tue, 29 Nov 2011 04:25:46 +0000 (23:25 -0500)]
Name and search workspaces.
Workspaces can be searched by either name or number.
ok marco
Lawrence Teo [Tue, 29 Nov 2011 04:15:28 +0000 (23:15 -0500)]
Extend the uniconify code to support upcoming search-based features.
ok marco
Lawrence Teo [Tue, 29 Nov 2011 03:41:58 +0000 (22:41 -0500)]
Cycle through all workspaces (empty or not) with M-<Up> and M-<Down>.
Adapted from a diff by Splex <splecks@rejii.com>
ok marco
Lawrence Teo [Tue, 29 Nov 2011 03:31:11 +0000 (22:31 -0500)]
Allow status bar text to be left-, center-, or right-justified.
Adapted from a diff by Tiago Cunha <tcunha@gmx.com>
ok marco
Marco Peereboom [Mon, 28 Nov 2011 15:50:50 +0000 (09:50 -0600)]
Make time localized too.
Closes FS#71
From: valere monseur (dobedo)
Lawrence Teo [Mon, 28 Nov 2011 03:42:38 +0000 (22:42 -0500)]
Put new sentences on new lines.
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Tue, 22 Nov 2011 03:14:48 +0000 (22:14 -0500)]
Print ws_n and mvws_n properly
From: Tiago Cunha <tcunha@gmx.com>
ok marco
Lawrence Teo [Tue, 22 Nov 2011 03:12:31 +0000 (22:12 -0500)]
Fix incorrect action name: stack_del should be stack_dec
From: Tiago Cunha <tcunha@gmx.com>
ok marco
marco [Fri, 18 Nov 2011 01:55:41 +0000 (19:55 -0600)]
Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm
marco [Fri, 18 Nov 2011 01:55:05 +0000 (19:55 -0600)]
Make stack_enable work again.
From: Tiago Cunha <tcunha@gmx.com>
Lawrence Teo [Fri, 18 Nov 2011 00:05:31 +0000 (19:05 -0500)]
fix an fd leak
ok marco
Lawrence Teo [Sun, 13 Nov 2011 03:54:48 +0000 (22:54 -0500)]
list keyboard mapping files in their own section
ok marco
Lawrence Teo [Fri, 11 Nov 2011 05:52:49 +0000 (00:52 -0500)]
mention Czech Republic keyboard mapping file scrotwm_cz.conf on manpage
Marco Peereboom [Thu, 10 Nov 2011 16:29:49 +0000 (10:29 -0600)]
Add CZ keyboard map.
From: ARIGATO353 <arigato353@gmail.com>
Lawrence Teo [Wed, 2 Nov 2011 03:01:29 +0000 (23:01 -0400)]
uncomment all bind[] lines in scrotwm_{us,es}.conf so that they will
apply by default when keyboard_mapping is used
ok marco
Lawrence Teo [Wed, 2 Nov 2011 02:59:50 +0000 (22:59 -0400)]
let scrotwm build on Linux again
ok marco
marco [Tue, 1 Nov 2011 15:22:26 +0000 (10:22 -0500)]
Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm
Grégoire Duchêne [Tue, 1 Nov 2011 14:10:03 +0000 (15:10 +0100)]
Add French keyboard support
From Gregoire Duchene <gduchene@fastmail.net>
marco [Tue, 1 Nov 2011 15:07:57 +0000 (10:07 -0500)]
Mention French keyboard conf file
Grégoire Duchêne [Tue, 1 Nov 2011 14:10:03 +0000 (15:10 +0100)]
French key bindings patch
Here you go! I hope this is sufficient.
--
Greg
From
63dbe4bf3070a5ec8bffe1bc2bc0738f6c7eb97e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Duch=C3=AAne?= <gduchene@fastmail.net>
Date: Tue, 1 Nov 2011 15:00:28 +0100
Subject: [PATCH] scrotwm_fr.conf keyboard_mapping file for the French
keyboard layout
Lawrence Teo [Fri, 28 Oct 2011 01:37:11 +0000 (21:37 -0400)]
fix mandoc -Tlint warnings
ok marco
Lawrence Teo [Wed, 26 Oct 2011 04:54:52 +0000 (00:54 -0400)]
new release script and versioning scheme for scrotwm
(adapted from xxxterm)
ok marco
Lawrence Teo [Wed, 26 Oct 2011 02:47:09 +0000 (22:47 -0400)]
scrotwm_es.conf keyboard_mapping file for the Spanish keyboard layout
Several key bindings were selected with a lot of help and testing by
Gonzalo L. R. <gonzalo@x61.com.ar>
ok marco
Lawrence Teo [Wed, 26 Oct 2011 02:44:02 +0000 (22:44 -0400)]
scrotwm_us.conf keyboard_mapping file for the US keyboard layout
The key bindings in this file are the default values used by scrotwm
ok marco
Lawrence Teo [Wed, 26 Oct 2011 02:40:12 +0000 (22:40 -0400)]
new keyboard_mapping option to load pre-defined key bindings for
different keyboard layouts
ok marco
Marco Peereboom [Tue, 25 Oct 2011 20:54:39 +0000 (15:54 -0500)]
kill cvs tags
Marco Peereboom [Tue, 25 Oct 2011 20:22:07 +0000 (15:22 -0500)]
remove html stuff, we keep it all in the wiki now
Marco Peereboom [Tue, 25 Oct 2011 20:21:20 +0000 (15:21 -0500)]
remove port stuff
Marco Peereboom [Tue, 25 Oct 2011 20:20:18 +0000 (15:20 -0500)]
Merge branch 'master' of opensource.conformal.com:/git/scrotwm
Marco Peereboom [Tue, 25 Oct 2011 20:19:50 +0000 (15:19 -0500)]
add fpic
Marco Peereboom [Tue, 25 Oct 2011 20:19:29 +0000 (15:19 -0500)]
Fancy clang stuff
Marco Peereboom [Tue, 25 Oct 2011 20:19:02 +0000 (15:19 -0500)]
clang warning and remove port stuff
Lawrence Teo [Thu, 20 Oct 2011 01:50:02 +0000 (21:50 -0400)]
fix NULL pointer dereferences and implement some additional safeguards
ok marco
Marco Peereboom [Mon, 10 Oct 2011 14:43:48 +0000 (09:43 -0500)]
fix default keybindings for floater movement
From: Lawrence Teo <lteo@devio.us>
Marco Peereboom [Thu, 6 Oct 2011 19:13:23 +0000 (14:13 -0500)]
enable spanish and italian man pages again
got fine updates from native speakers
Marco Peereboom [Thu, 6 Oct 2011 16:30:45 +0000 (11:30 -0500)]
Revert "fix weird french keyboards"
This reverts commit
64075b7af175e867e8e8d2d1ef280529bc303847.
This causes crashes on spanish keyboards.
3364 if (!(win->transient != 0 || win->floating != 0))
(gdb) bt
) at scrotwm.c:6370
(gdb)
The real issue is in keypress though.
if ((keysym == keys[i].keysym || skeysym == keys[i].keysym)
evaluates to true when it shouldn't.
Marco Peereboom [Mon, 3 Oct 2011 22:10:48 +0000 (17:10 -0500)]
fix weird french keyboards
At least I was told this works. Doesn't break my stuff so all is good
:-)
From: Jonathan Armani <dbd@asystant.net>
Via: Lawrence Teo <lteo@devio.us>
Marco Peereboom [Mon, 3 Oct 2011 21:39:12 +0000 (16:39 -0500)]
move and resize floating windows with keyboard
This allows for an almost completely mouse-free operation of scrotwm,
which is especially useful on systems with crappy mice.
From: Lawrence Teo <lteo@devio.us>
marco [Wed, 21 Sep 2011 18:46:35 +0000 (13:46 -0500)]
bring italian man page back to reality; from Andrea Bolognani <eof@kiyuko.org>
marco [Tue, 20 Sep 2011 17:41:46 +0000 (12:41 -0500)]
manpage fixes from Andrea Bolognani <eof@kiyuko.org>
marco [Tue, 20 Sep 2011 04:18:24 +0000 (23:18 -0500)]
more clang warnings that are usesul
marco [Tue, 20 Sep 2011 03:01:00 +0000 (22:01 -0500)]
shut clang up here too and some more white spaces
marco [Tue, 20 Sep 2011 02:56:45 +0000 (21:56 -0500)]
shut clang up and some white spaces
Marco Peereboom [Sat, 13 Aug 2011 20:26:02 +0000 (20:26 +0000)]
bump version
Marco Peereboom [Wed, 10 Aug 2011 13:44:36 +0000 (13:44 +0000)]
add -lXtst here too
Marco Peereboom [Wed, 10 Aug 2011 03:03:07 +0000 (03:03 +0000)]
make urgent printf a lot more sane
Marco Peereboom [Mon, 8 Aug 2011 22:45:14 +0000 (22:45 +0000)]
stray debug
Marco Peereboom [Mon, 8 Aug 2011 22:41:51 +0000 (22:41 +0000)]
Add a fake mouse button 2 press for mouse starved machines and xterm
convenience. So now one can paste using M-v.
Marco Peereboom [Mon, 8 Aug 2011 22:40:57 +0000 (22:40 +0000)]
Disable languages as they are very much out of date
Switch to man/man
Link again Xtst
Marco Peereboom [Sat, 6 Aug 2011 18:21:38 +0000 (18:21 +0000)]
feh hadn't written the .conf file yet
Marco Peereboom [Sat, 6 Aug 2011 18:21:00 +0000 (18:21 +0000)]
Add urgency hint based on a diff from:
Wido Snikkers <wsnikkers@pcextreme.nl>
Note that for this to work one must enable it in apps, xterm etc
Requested by many.
Marco Peereboom [Tue, 2 Aug 2011 13:22:34 +0000 (13:22 +0000)]
bump version
Marco Peereboom [Tue, 19 Jul 2011 21:28:15 +0000 (21:28 +0000)]
add a new stack layout status thing to print the number of panes in the
master and slave areas.
From: keenerd <keenerd@gmail.com>
Marco Peereboom [Mon, 18 Jul 2011 16:19:29 +0000 (16:19 +0000)]
catch up to new top
From: Alicornio <alicornio@ig.com.br>
Marco Peereboom [Mon, 18 Jul 2011 16:16:24 +0000 (16:16 +0000)]
document EWMH usage
from Tuukka Kataja <stuge@xor.fi>
Marco Peereboom [Mon, 18 Jul 2011 16:09:43 +0000 (16:09 +0000)]
add Tuukka Kataja <stuge@xor.fi> to copyrights
Marco Peereboom [Tue, 28 Jun 2011 12:41:07 +0000 (12:41 +0000)]
Update authors
Marco Peereboom [Tue, 28 Jun 2011 12:28:47 +0000 (12:28 +0000)]
Add comment and link to man page. Turns out a lot of people don't know
there is one. I guess we can thank the Linux howto mentality for that...
Marco Peereboom [Fri, 24 Jun 2011 17:01:43 +0000 (17:01 +0000)]
add more verbiage to layout
Marco Peereboom [Fri, 24 Jun 2011 16:53:40 +0000 (16:53 +0000)]
bring back old tiling behavior where floating windows stay always on top.
Add key stroke to toggle this behavior per workspace and add it to the
layout entry in the configuration file.
While here add iconify and uniconify key bindings in config file.
requested by many.
Marco Peereboom [Thu, 23 Jun 2011 18:56:39 +0000 (18:56 +0000)]
Make layout fancier by adding master_grow, master_shrink, master_add,
master_del, stack_inc and stack_del to the format string.
Marco Peereboom [Thu, 23 Jun 2011 17:52:39 +0000 (17:52 +0000)]
add initial stack mode at start-of-day. this really could use some
percentage value to size the master area.
Marco Peereboom [Thu, 23 Jun 2011 16:34:00 +0000 (16:34 +0000)]
remove args constraint and add an example of args in conf file
Marco Peereboom [Thu, 23 Jun 2011 16:31:54 +0000 (16:31 +0000)]
add arguments to autorun, from akfaew@jasminek.net
Marco Peereboom [Thu, 23 Jun 2011 12:13:19 +0000 (12:13 +0000)]
work around apps that dont set _NET_WM_PID and roll new version number
Marco Peereboom [Thu, 23 Jun 2011 11:37:16 +0000 (11:37 +0000)]
fix crash on apps that dont play nice with NET_WM_PID.
Marco Peereboom [Thu, 23 Jun 2011 03:05:19 +0000 (03:05 +0000)]
bump version