Marco Peereboom [Thu, 29 Jan 2009 20:35:01 +0000 (20:35 +0000)]
Move class names into ws_win; this will make debug easy because now we
can print the name of the window as well.
Marco Peereboom [Thu, 29 Jan 2009 20:27:11 +0000 (20:27 +0000)]
Add class code so that we can quirk certain apps.
Add beginnings of propertynotify to deal with property changes.
Marco Peereboom [Wed, 28 Jan 2009 21:14:08 +0000 (21:14 +0000)]
Make full screen actually full screen and move window so that border is out
of sight.
Marco Peereboom [Wed, 28 Jan 2009 20:58:39 +0000 (20:58 +0000)]
KNF
Add cvs tag as a string that is printed at startup.
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 [Wed, 28 Jan 2009 04:57:32 +0000 (04:57 +0000)]
Add bugs and todo. Need the bugs because i keep forgetting.
Marco Peereboom [Wed, 28 Jan 2009 04:45:45 +0000 (04:45 +0000)]
Move some more declarations to where they belong.
Marco Peereboom [Wed, 28 Jan 2009 04:36:22 +0000 (04:36 +0000)]
Bump man
Marco Peereboom [Wed, 28 Jan 2009 03:29:33 +0000 (03:29 +0000)]
Bump version to roll a snap
Marco Peereboom [Wed, 28 Jan 2009 00:21:39 +0000 (00:21 +0000)]
One more item done
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.
Marco Peereboom [Tue, 27 Jan 2009 16:18:10 +0000 (16:18 +0000)]
Add screenshot_app to conf
Marco Peereboom [Tue, 27 Jan 2009 16:16:20 +0000 (16:16 +0000)]
Add tags
Marco Peereboom [Tue, 27 Jan 2009 07:36:49 +0000 (07:36 +0000)]
Do screenshots and add example script for it.
Marco Peereboom [Tue, 27 Jan 2009 06:50:57 +0000 (06:50 +0000)]
Bad mcbride leaking memory and char * in the wrong spot.
Marco Peereboom [Sun, 25 Jan 2009 21:48:06 +0000 (21:48 +0000)]
Move int back where it belongs.
Ryan McBride [Sun, 25 Jan 2009 17:56:01 +0000 (17:56 +0000)]
Adjust window sizes to match height and width increment hints.
Minimizes wasted space on xterms.
Ryan McBride [Sun, 25 Jan 2009 10:54:16 +0000 (10:54 +0000)]
Support placing the master area on the opposite side.
Ryan McBride [Sun, 25 Jan 2009 10:43:20 +0000 (10:43 +0000)]
Replace the vertical_stack() and horizontal_stack() logic with one
function that rotates appropriately.
Marco Peereboom [Sun, 25 Jan 2009 04:12:11 +0000 (04:12 +0000)]
Remove screenshot since we have it; just not as pretty as one would like.
Marco Peereboom [Sun, 25 Jan 2009 04:09:01 +0000 (04:09 +0000)]
Update pics
Marco Peereboom [Sun, 25 Jan 2009 03:36:15 +0000 (03:36 +0000)]
color *sigh*
Marco Peereboom [Sun, 25 Jan 2009 03:34:51 +0000 (03:34 +0000)]
Update
Marco Peereboom [Sun, 25 Jan 2009 03:12:34 +0000 (03:12 +0000)]
MapRaised in max_stack to bring window into focus.
Marco Peereboom [Sun, 25 Jan 2009 01:50:27 +0000 (01:50 +0000)]
Add screenshot
Marco Peereboom [Sun, 25 Jan 2009 01:46:44 +0000 (01:46 +0000)]
Add initial screenshot support
Marco Peereboom [Sat, 24 Jan 2009 23:52:28 +0000 (23:52 +0000)]
Move html into own dir
Marco Peereboom [Sat, 24 Jan 2009 23:51:08 +0000 (23:51 +0000)]
Move delay back to 59
Marco Peereboom [Sat, 24 Jan 2009 23:49:58 +0000 (23:49 +0000)]
Remove files for real
Marco Peereboom [Sat, 24 Jan 2009 23:38:36 +0000 (23:38 +0000)]
Remove html so that we can move it to it's own dir.
Ryan McBride [Sat, 24 Jan 2009 17:57:26 +0000 (17:57 +0000)]
Add support for passing variables up to X11 via window properties; done by
hooking XCreateWindow and friends via LD_PRELOAD. Used now to make sure that
windows come up in the workspace they were spawn()'d from, but more soon.
Code to do the nasty borrowed with thanks from Enlightenment.
Marco Peereboom [Fri, 23 Jan 2009 22:51:39 +0000 (22:51 +0000)]
Remove stray SWM_DEBUG
Marco Peereboom [Fri, 23 Jan 2009 22:50:38 +0000 (22:50 +0000)]
Add bar delay
Marco Peereboom [Fri, 23 Jan 2009 22:11:06 +0000 (22:11 +0000)]
New
Marco Peereboom [Fri, 23 Jan 2009 22:04:58 +0000 (22:04 +0000)]
Better man
Ryan McBride [Fri, 23 Jan 2009 08:51:56 +0000 (08:51 +0000)]
Add commented-out support for printing CPU stats to the bar.
Ryan McBride [Fri, 23 Jan 2009 08:30:03 +0000 (08:30 +0000)]
I want to know if I'm on AC, might as well make it pretty while we're here.
Also try to make it shut up on systems without battery.
Marco Peereboom [Fri, 23 Jan 2009 04:20:34 +0000 (04:20 +0000)]
Add man in html too
Marco Peereboom [Fri, 23 Jan 2009 04:14:40 +0000 (04:14 +0000)]
Make man
Marco Peereboom [Fri, 23 Jan 2009 04:05:04 +0000 (04:05 +0000)]
Add rudimentary man with the key bindings.
Marco Peereboom [Fri, 23 Jan 2009 02:38:30 +0000 (02:38 +0000)]
Use full path
Ryan McBride [Fri, 23 Jan 2009 01:01:48 +0000 (01:01 +0000)]
Remember which workspace we assign windows to via window properties.
Marco Peereboom [Thu, 22 Jan 2009 23:12:27 +0000 (23:12 +0000)]
Add linux goo; from NicM
Marco Peereboom [Thu, 22 Jan 2009 23:06:45 +0000 (23:06 +0000)]
Fix segfault on linux; from nicm
Marco Peereboom [Thu, 22 Jan 2009 22:57:30 +0000 (22:57 +0000)]
No idea how this new = 1 bug snuck in but make it 0 so that windows draw
properly. Since I am still hounding a positioning bug with respect to
dialog windows leave some shitty debug in here albeit disabled.
Marco Peereboom [Thu, 22 Jan 2009 18:29:46 +0000 (18:29 +0000)]
remove some stray carriage returns
Marco Peereboom [Thu, 22 Jan 2009 18:16:35 +0000 (18:16 +0000)]
update every 59 seconds instead of 1
Marco Peereboom [Thu, 22 Jan 2009 18:13:43 +0000 (18:13 +0000)]
Done with one more item
Marco Peereboom [Thu, 22 Jan 2009 18:11:52 +0000 (18:11 +0000)]
Add kill window fro pirofti
Marco Peereboom [Thu, 22 Jan 2009 18:04:02 +0000 (18:04 +0000)]
*sigh* stupid debug still enabled
Marco Peereboom [Thu, 22 Jan 2009 18:00:16 +0000 (18:00 +0000)]
Fix first of 2 new mecbride bugs; colors can be read from conf file again
Marco Peereboom [Thu, 22 Jan 2009 17:50:16 +0000 (17:50 +0000)]
Add baraction script for batter and stuff.
bad mcbride broke colors in config file; need to go fix that now.
Ryan McBride [Thu, 22 Jan 2009 06:21:23 +0000 (06:21 +0000)]
Set colors and font for dmenu based on bar; make these independently
configurable later.
To do this, we store color names as well as values; This will help us later
to suppport dynamic screen changes. Also, clean up the config parser by
storing colors in an indexed array so they can be set with a generic function.
Marco Peereboom [Thu, 22 Jan 2009 03:58:20 +0000 (03:58 +0000)]
geez, wonder why this never bombed; zero it man!
Marco Peereboom [Thu, 22 Jan 2009 03:48:17 +0000 (03:48 +0000)]
Teh mouze
Marco Peereboom [Thu, 22 Jan 2009 03:46:13 +0000 (03:46 +0000)]
Add mouse button actions. One example handler that does nothing and we
have copy and paste and click-to-focus
Marco Peereboom [Thu, 22 Jan 2009 01:45:22 +0000 (01:45 +0000)]
We want screen shots
Marco Peereboom [Thu, 22 Jan 2009 01:44:32 +0000 (01:44 +0000)]
Some items were done
Ryan McBride [Thu, 22 Jan 2009 01:22:09 +0000 (01:22 +0000)]
Simplify selection of the current region; just always track the cursor.
Marco Peereboom [Thu, 22 Jan 2009 00:08:19 +0000 (00:08 +0000)]
More focus simplicfication
Marco Peereboom [Wed, 21 Jan 2009 23:12:54 +0000 (23:12 +0000)]
Collapse focus and unfocus and brute force unfocs. This way we don't lose
track of what we are really trying to do. Tested on multi and single screen
Marco Peereboom [Wed, 21 Jan 2009 15:08:55 +0000 (15:08 +0000)]
oops stray if sneaked in
Marco Peereboom [Wed, 21 Jan 2009 15:02:57 +0000 (15:02 +0000)]
Revert latest McBride commit. Doesn't work on single screen and I am not
sure how to fix it.
Ryan McBride [Wed, 21 Jan 2009 08:45:36 +0000 (08:45 +0000)]
Fix some workspace switching nits:
- Don't XMapRaised windows if they need to be moved/resized first.
- Keep focus in the current region if possible.
Ryan McBride [Wed, 21 Jan 2009 01:26:56 +0000 (01:26 +0000)]
Cycle workspaces in region with alt-leftarrow and alt-rightarrow.
By default skips empty and already visible workspaces, set
cycle_empty or cycle_visible to change this behaviour.
Marco Peereboom [Tue, 20 Jan 2009 06:46:37 +0000 (06:46 +0000)]
Update todo
Marco Peereboom [Tue, 20 Jan 2009 06:23:18 +0000 (06:23 +0000)]
ugh > 80 cols
Marco Peereboom [Tue, 20 Jan 2009 06:16:05 +0000 (06:16 +0000)]
Make bar configurable using [x] notation in .conf file. Originally from dwc
Debug and make it work from me
ClearWindow instead of overwriting text on bar
shoten variable names that made the parser even more unreadable
Ryan McBride [Tue, 20 Jan 2009 06:05:47 +0000 (06:05 +0000)]
one. last. off-by-2.
Ryan McBride [Tue, 20 Jan 2009 05:57:18 +0000 (05:57 +0000)]
Duh, math is hard.
Ryan McBride [Tue, 20 Jan 2009 05:45:49 +0000 (05:45 +0000)]
Oops, take the window borders correctly into account.
Ryan McBride [Tue, 20 Jan 2009 05:37:45 +0000 (05:37 +0000)]
Add alt-comma and alt-period keybindings, which increase and decrease the
number of windows in the master area.
kill the *_init and *_resize stacker hooks in favour of a single *_config.
Marco Peereboom [Tue, 20 Jan 2009 04:28:22 +0000 (04:28 +0000)]
Let it beknown where we are
Marco Peereboom [Tue, 20 Jan 2009 03:50:50 +0000 (03:50 +0000)]
Add screen identifier. This doesn't do workspaces just yet.
Ryan McBride [Tue, 20 Jan 2009 02:22:50 +0000 (02:22 +0000)]
Load config file AFTER screens are initialized. Bug pointed out by dwc.
Ryan McBride [Mon, 19 Jan 2009 23:19:08 +0000 (23:19 +0000)]
Multihead is mostly working now, remove from todo.
Marco Peereboom [Mon, 19 Jan 2009 21:11:46 +0000 (21:11 +0000)]
Simplify bar updates.
Marco Peereboom [Mon, 19 Jan 2009 19:40:26 +0000 (19:40 +0000)]
width is no longer -2 by default so adjust bar width
Marco Peereboom [Mon, 19 Jan 2009 19:33:38 +0000 (19:33 +0000)]
I want to be able to look at cores for now.
Marco Peereboom [Mon, 19 Jan 2009 19:27:36 +0000 (19:27 +0000)]
Unfuck signal handler.
Make all screens have their own bars.
Print screen number in bar.
Fix "Alarm clock" issue due to a race between restart and alarm.
Marco Peereboom [Mon, 19 Jan 2009 15:11:47 +0000 (15:11 +0000)]
Stray debug
Marco Peereboom [Mon, 19 Jan 2009 15:09:04 +0000 (15:09 +0000)]
simplify and shrink code in setup some more
Marco Peereboom [Mon, 19 Jan 2009 14:59:29 +0000 (14:59 +0000)]
Shorten some variable names.
Don't leak memory and resources in setup.
Marco Peereboom [Mon, 19 Jan 2009 14:15:31 +0000 (14:15 +0000)]
Fix overlapping region on my fancy laptop with a big screen
Spacing
C89 variables (yes I am that old)
Ryan McBride [Mon, 19 Jan 2009 09:05:02 +0000 (09:05 +0000)]
Cleanup; get rid of crufty cur_ws and cur_region and replace with
root_to_reginon, which will always give a non-crufty result. Pass the
region to all keystroke handlers.
To allow for workspace commands in empty workspaces without full-force
focus-follows-mouse, track mouse-clicks on root windows and make them
override cur_focus in root_to_region().
Also, examples of more descriptive debug output for some handlers.
Ryan McBride [Mon, 19 Jan 2009 05:48:11 +0000 (05:48 +0000)]
Major churn for multi-headed support (Xrandr and plain multi-screen).
- workspaces now per-screen (X does not let you migrate windows)
- a screen has 1 or more regions (now mapped by Xrandr, later configurable)
- current_ws is dead, long live cur_focus
- only one window has real focus, but workspaces keep track ws->focus
- lots of places (especially event handlers) use cur_focus but should
identify the correct source of the event instead
- festival of pointer management to keep track of all this.
Marco Peereboom [Mon, 19 Jan 2009 04:27:28 +0000 (04:27 +0000)]
More blah blah and some screenshots
Marco Peereboom [Mon, 19 Jan 2009 03:30:39 +0000 (03:30 +0000)]
Kill some braces and shorten code a bit
Marco Peereboom [Mon, 19 Jan 2009 03:19:35 +0000 (03:19 +0000)]
Verbiage
Marco Peereboom [Sun, 18 Jan 2009 23:53:03 +0000 (23:53 +0000)]
Unscrew colors on machines that use 16 bit color. I am talking to you
zaurus and sparc!
from dwc
Marco Peereboom [Sun, 18 Jan 2009 17:37:50 +0000 (17:37 +0000)]
Add tags
Marco Peereboom [Sun, 18 Jan 2009 17:35:24 +0000 (17:35 +0000)]
Add some html files to start doco.
Marco Peereboom [Sun, 18 Jan 2009 04:48:04 +0000 (04:48 +0000)]
Stop farting around with dialog box potential sizes and make it a ratio.
This ratio can be configured in the .conf file.
Marco Peereboom [Sun, 18 Jan 2009 03:30:51 +0000 (03:30 +0000)]
Make floaters work right. This fixes the remaining issues.
Note: firefox sucks for having that retarded "download complete" window
use "Download Statusbar" to disable that. Really you want to.
Marco Peereboom [Sun, 18 Jan 2009 01:19:01 +0000 (01:19 +0000)]
Correct XInput for managed windows so that mplayer syops whining about the
mouse mask.
Marco Peereboom [Sun, 18 Jan 2009 00:28:20 +0000 (00:28 +0000)]
First attempt at doing pr0n! Mplayer now sort of works; switching between
ws while having floaters screws up. Some more nits need to be resolved but
this is promissing enough.
Marco Peereboom [Sat, 17 Jan 2009 21:39:22 +0000 (21:39 +0000)]
somehow if( and for( remained in the code borrowed from dwm. Kill that dead.
Marco Peereboom [Sat, 17 Jan 2009 19:57:48 +0000 (19:57 +0000)]
Fix fucking phantom windows for real this time.
Marco Peereboom [Sat, 17 Jan 2009 17:48:37 +0000 (17:48 +0000)]
Fix phantom windows better by keeping transients; fixes mozilla restart
with dialog open.