Commit graph

172 commits

Author SHA1 Message Date
Marco Peereboom
48f1a28fef no {} around DNPRINTF. 2009-02-01 03:04:45 +00:00
Ryan McBride
ef200b93d6 Put transient windows into the current workspace, regardless of any
inherited window properties.
2009-02-01 01:45:43 +00:00
Ryan McBride
06013e8ce9 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.
2009-02-01 01:39:25 +00:00
Marco Peereboom
e00144a6bf Make resize smarter so that M-M3 resizes the window without centering it
and M-S-M3 keeps the old behavior.
2009-01-30 20:59:20 +00:00
Marco Peereboom
e3ef1c7f36 Add version to bar when M-S-v is pressed. We will need it to debug at
some point.
2009-01-30 20:16:01 +00:00
Marco Peereboom
63d5e9bd53 Fix a silly crash 2009-01-30 03:51:01 +00:00
Marco Peereboom
cb242b5abd Fix smaller than possible resize. 2009-01-29 22:31:27 +00:00
Marco Peereboom
21a5aa39eb Add move window as well. 2009-01-29 22:15:15 +00:00
Marco Peereboom
0cde83bdc3 Move mouse back onto the border to retain focus on resized window. 2009-01-29 21:41:00 +00:00
Marco Peereboom
0139236e71 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.
2009-01-29 21:38:49 +00:00
Marco Peereboom
a2a8bae91b Move class names into ws_win; this will make debug easy because now we
can print the name of the window as well.
2009-01-29 20:35:01 +00:00
Marco Peereboom
de65c2a567 Add class code so that we can quirk certain apps.
Add beginnings of propertynotify to deal with property changes.
2009-01-29 20:27:11 +00:00
Marco Peereboom
737b7f3980 Make full screen actually full screen and move window so that border is out
of sight.
2009-01-28 21:14:08 +00:00
Marco Peereboom
741c46afdc KNF
Add cvs tag as a string that is printed at startup.
2009-01-28 20:58:39 +00:00
Marco Peereboom
a912ad3965 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.
2009-01-28 17:46:55 +00:00
Marco Peereboom
541344a40a Move some more declarations to where they belong. 2009-01-28 04:45:45 +00:00
Marco Peereboom
c405976b2d Bump version to roll a snap 2009-01-28 03:29:33 +00:00
Marco Peereboom
134554a043 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.
2009-01-27 21:30:18 +00:00
Marco Peereboom
ae6a9b20ce 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.
2009-01-27 19:56:47 +00:00
Marco Peereboom
e4c8351e9b Add screenshot_app to conf 2009-01-27 16:18:10 +00:00
Marco Peereboom
32b3198dcd Do screenshots and add example script for it. 2009-01-27 07:36:49 +00:00
Marco Peereboom
ececcd0a8e Bad mcbride leaking memory and char * in the wrong spot. 2009-01-27 06:50:57 +00:00
Marco Peereboom
b7dbe34497 Move int back where it belongs. 2009-01-25 21:48:06 +00:00
Ryan McBride
fa06bf8d4b Adjust window sizes to match height and width increment hints.
Minimizes wasted space on xterms.
2009-01-25 17:56:01 +00:00
Ryan McBride
5bdf52a032 Support placing the master area on the opposite side. 2009-01-25 10:54:16 +00:00
Ryan McBride
f92c9ed072 Replace the vertical_stack() and horizontal_stack() logic with one
function that rotates appropriately.
2009-01-25 10:43:20 +00:00
Marco Peereboom
b9f59efc8d MapRaised in max_stack to bring window into focus. 2009-01-25 03:12:34 +00:00
Marco Peereboom
2a214e3e6c Add initial screenshot support 2009-01-25 01:46:44 +00:00
Ryan McBride
6d08df4744 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.
2009-01-24 17:57:26 +00:00
Marco Peereboom
ed1dbfa144 Remove stray SWM_DEBUG 2009-01-23 22:51:39 +00:00
Marco Peereboom
7088da1fd1 Add bar delay 2009-01-23 22:50:38 +00:00
Ryan McBride
7ab5dbd429 Remember which workspace we assign windows to via window properties. 2009-01-23 01:01:48 +00:00
Marco Peereboom
238662f027 Fix segfault on linux; from nicm 2009-01-22 23:06:45 +00:00
Marco Peereboom
6ca5cd2ca7 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.
2009-01-22 22:57:30 +00:00
Marco Peereboom
baebde8cfd remove some stray carriage returns 2009-01-22 18:29:46 +00:00
Marco Peereboom
e8cdd58b88 Add kill window fro pirofti 2009-01-22 18:11:52 +00:00
Marco Peereboom
ea47115e91 *sigh* stupid debug still enabled 2009-01-22 18:04:02 +00:00
Marco Peereboom
7b80ce46c2 Fix first of 2 new mecbride bugs; colors can be read from conf file again 2009-01-22 18:00:16 +00:00
Marco Peereboom
7288f47b93 Add baraction script for batter and stuff.
bad mcbride broke colors in config file; need to go fix that now.
2009-01-22 17:50:16 +00:00
Ryan McBride
e5cdfa8841 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.
2009-01-22 06:21:23 +00:00
Marco Peereboom
15aa432b8e geez, wonder why this never bombed; zero it man! 2009-01-22 03:58:20 +00:00
Marco Peereboom
c83c5792fd Add mouse button actions. One example handler that does nothing and we
have copy and paste and click-to-focus
2009-01-22 03:46:13 +00:00
Ryan McBride
d3d81ce05f Simplify selection of the current region; just always track the cursor. 2009-01-22 01:22:09 +00:00
Marco Peereboom
166a233bab More focus simplicfication 2009-01-22 00:08:19 +00:00
Marco Peereboom
326462f79d 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
2009-01-21 23:12:54 +00:00
Marco Peereboom
b025f9df55 oops stray if sneaked in 2009-01-21 15:08:55 +00:00
Marco Peereboom
4aff88b957 Revert latest McBride commit. Doesn't work on single screen and I am not
sure how to fix it.
2009-01-21 15:02:57 +00:00
Ryan McBride
4ecc6d9658 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.
2009-01-21 08:45:36 +00:00
Ryan McBride
662c642cb2 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.
2009-01-21 01:26:56 +00:00
Marco Peereboom
3de6ed4de3 ugh > 80 cols 2009-01-20 06:23:18 +00:00