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.
Marco Peereboom [Thu, 29 Jan 2009 21:38:49 +0000 (21:38 +0000)]
Resize transient & floating windows with alt-mouse3. Keeps the window in
the middle of the screen because I am not sure if that isn'y what we wnat
yet. For mplayer it is nice to keep it in the middle.
Marco Peereboom [Wed, 28 Jan 2009 17:46:55 +0000 (17:46 +0000)]
open /dev/null on stdin during spawn. pointed out by mcbride and it fixes
mplayer when launched from firefox and when firefox was launched from dmenu
Also move focus to the bottom of manage_window.
Marco Peereboom [Tue, 27 Jan 2009 21:30:18 +0000 (21:30 +0000)]
Prevent acessing pointer that has been freed.
Still one weird focus bug leftover where when the last window in a ws gets
destroyed and if there is a window on the alternate screen it gets focus.
Marco Peereboom [Tue, 27 Jan 2009 19:56:47 +0000 (19:56 +0000)]
Add cycle through regions; aka move pointer.
Fix bug where windows from another ws remained mapped after restart.
Fix focus bug where sometimes the pointer was NULL.