Darrin Chandler [Tue, 11 Aug 2009 16:20:55 +0000 (16:20 +0000)]
Remove fixed-length limitation on window class and name as used by quirks.
Removed from html TODO list.
Overhaul conf_load to better deal with foo[bar]= syntax. Conf_load now
does the bulk of the parsing, individual config functions now call funcs
to actually set the values.
Darrin Chandler [Sat, 1 Aug 2009 19:59:12 +0000 (19:59 +0000)]
Some class/name strings can be long. Bump up SWM_QUIRK_LEN to 64. It's not
surprising that it was a Java app that tripped this up. Leaving dynamic
allocation for a later commit.
pyr [Thu, 4 Jun 2009 06:03:37 +0000 (06:03 +0000)]
Add two configuration options:
* title_name_enabled
* title_class_enabled
The first one shows the active window title in the status bar, the
second the active window class (useful to find out window classes
to use with quirks). Both are disabled by default.
read & approved by marco.
Ryan McBride [Wed, 4 Mar 2009 06:13:35 +0000 (06:13 +0000)]
Handle focus-out events, watch for something that looks like synergy
stealing the cursor when it moves to another screen, and unfocus the
window if this happens. Makes synergy across multiple scrotwm machines
much nicer, as you only get the focus window border on one screen at
a time.
Also, unfocus_all is a sledgehammer, don't use it so much.
Ryan McBride [Mon, 9 Feb 2009 04:12:09 +0000 (04:12 +0000)]
Don't use an uninitialised variable when calculating the width of the master
area; while we're here, handle the case where the first window is floating,
or there are no tiled windows at all. Sizing issue reported by azmarco.
Ryan McBride [Sat, 7 Feb 2009 19:49:58 +0000 (19:49 +0000)]
Let scrotwm adjust the font size on xterms as it squishes them in tiling
mode to keep the terminal width above a certan size (set with 'term_width'
in the config file.
We do this by sending the default font size change keystrokes to the xterm
in question. Because xterm does not accept 'synthetic' keystroke events by
default, and we don't want to force users to enable acceptSendEvents for
security reasons, hook XtAppNextEvent in the LD_PRELOAD hack, and clear
the send_event flag on the events in question. CAVEAT: Only works if xterm
is not setuid/setgid.
Ryan McBride [Tue, 3 Feb 2009 06:45:53 +0000 (06:45 +0000)]
More cleanup found while debugging my last silly mistake.
- don't ask for Xrandr events until we've set up the screens
- don't use an iterator for more than one thing at a time
- we don't need to handle RRNotify messages
- Move some bits around to fix compile on certain non-OpenBSD platforms
- Other cleanup and de-obfuscation
Ryan McBride [Tue, 3 Feb 2009 05:08:27 +0000 (05:08 +0000)]
Subscribe to xrandr events, and update our regions dynamically.
Keep a list of old regions around to reuse the region to ws mapping (and
other parameters later)
Marco Peereboom [Tue, 3 Feb 2009 00:50:01 +0000 (00:50 +0000)]
Add quirk for retarded dialog window sizes and make firefox use it.
Do not resize dialogs unless retarded.
Add unmanager_window so that windows that are unmapped and are transient
are no longer managed; xpdf needs this and other apps dont seem to care.
Ryan McBride [Sun, 1 Feb 2009 11:59:40 +0000 (11:59 +0000)]
Support user-defined regions. Lets you split monster monitors into multiple
regions, or override scrotwm's multi-head autodetection (such as on video
drivers that do multihead without telling X).
Ryan McBride [Sun, 1 Feb 2009 07:42:12 +0000 (07:42 +0000)]
We have more than one file now, and the licenses are not exactly the same,
update to reflect this. Also mention & link to license.template, and remove
epitome remenants from <title>.
Ryan McBride [Sun, 1 Feb 2009 01:39:25 +0000 (01:39 +0000)]
Drag tiled windows to floating; toggle windows between floating and tiled
with M-t. Also some backend fixups; stack all tiled windows first, then
floating windows, so order in the list doesn't matter.