aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------README.md (renamed from README)0
-rw-r--r--src/ChangeLog5
-rw-r--r--src/README77
-rwxr-xr-xsrc/config.h1
-rwxr-xr-xsrc/dminiwm.c2
5 files changed, 55 insertions, 30 deletions
diff --git a/README b/README.md
index 487a367..487a367 120000
--- a/README
+++ b/README.md
diff --git a/src/ChangeLog b/src/ChangeLog
index a7f6a73..50f941d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
+13/9/11
+ Added back horizontal tiling, follow mouse and follow window
+
12/9/11
- Reurned to catwm tiling methods - with the ability to resize the window at the top of the stack
+ Returned to catwm tiling methods - with the ability to resize the window at the top of the stack
9/9/11
Fine tuned the next/prev desktop and the destroy notify functions
diff --git a/src/README b/src/README
index 914ad69..57311d4 100644
--- a/src/README
+++ b/src/README
@@ -1,77 +1,96 @@
+##dminiwm
+### it's minimal and dynamic
+
I started this from catwm 31/12/10 ( https://bbs.archlinux.org/viewtopic.php?id=100215&p=1 )
See dminiwm.c or config.h for thanks and licensing.
-Summary
+###Summary
-------
-dminiwm is a very minimal and lightweight dynamic tiling window manager.
+**dminiwm** is a very minimal and lightweight dynamic tiling window manager.
I will try to stay under 1000 SLOC.
- Currently well under 800 lines with the config file included.
+ Currently under 900 lines with the config file included.
-Modes
+###Modes
-----
It allows the "normal" method of tiling window managers(with the new window as the master)
and with the new window opened at the bottom of the stack(like dwm's attach_aside)
- There's vertical tiling mode:
+ *There's vertical tiling mode:*
--------------
- | | W |
+ | | |
| |___|
| Master | |
| |___|
| | |
--------------
- There's horizontal tiling mode:
- --------------
- | |
- | Master |
- |____________|
- | | |
- | W | |
- --------------
+ *Horizontal tiling mode:*
+ -------------
+ | |
+ | Master |
+ |-----------|
+ | | | |
+ -------------
+
+ *Grid tiling mode:*
+ -------------
+ | | |
+ | | |
+ |------|----|
+ | | |
+ -------------
- Fullscreen mode(which you'll know when you see it)
+ *Fullscreen mode*(which you'll know when you see it)
- All accessible with keyboard shortcuts defined in the config.h file.
- The window W at the top of the stack can be resized on a per desktop basis.
+ All accessible with keyboard shortcuts defined in the config.h file.
Changing a tiling mode on one workspace doesn't affect the other workspaces.
-Recent Changes
+###Recent Changes
--------------
-7/9/11
-Added resizing of window at the top of the stack.
+13/9/11
+ Added the ability to resize the window on the top of the stack
+
-Status
+###Status
------
-There are a couple more options in the config file than the original catwm.
- Fixed the window manager crashing on a bad window error.
- Fixed the keyboard shortcuts not working if numlock was on.
- Added option to focus the window the mouse moves into
- Added option to resize window on the top of the stack.
+There are more options in the config file than the original catwm.
+ * Fixed the window manager crashing on a bad window error.
+ * Fixed the keyboard shortcuts not working if numlock was on.
+ * Added some functions.
+ * Added an option to focus the window the mouse just moved to.
+ * Fixed ghost windows being created.
+ * Added ability to resize the window on the top of the stack
-Installation
+
+###Installation
------------
Need Xlib, then:
+
$ make
# make install
$ make clean
-Bugs
+###Bugs
----
[ * No bugs for the moment ;) (I mean, no importants bugs ;)]
-Todo
+###Todo
----
+
+ * Add grid tiling mode back (without any useless gaps if possible)
+ * Fix mplayer full screen window sizing
+ * Have no window borders in fullscreen mode
+
diff --git a/src/config.h b/src/config.h
index 81380e3..847664f 100755
--- a/src/config.h
+++ b/src/config.h
@@ -33,6 +33,7 @@
#define ATTACH_ASIDE 1 /* 0=TRUE, 1=New window is master */
#define DEFAULT_MODE 0 /* 0 = Vertical, 1 = Fullscreen */
#define FOLLOW_MOUSE 0 /* 1=Don't 0=Focus the window the mouse just entered */
+#define FOLLOW_WINDOW 0 /* 1=Don't 0=Follow the window when moved to a different desktop */
// Colors
#define FOCUS "#664422" // dkorange
diff --git a/src/dminiwm.c b/src/dminiwm.c
index 8b53f9c..80ea1a2 100755
--- a/src/dminiwm.c
+++ b/src/dminiwm.c
@@ -393,6 +393,8 @@ void client_to_desktop(const Arg arg) {
save_desktop(tmp2);
tile();
update_current();
+ if(FOLLOW_WINDOW == 0)
+ change_desktop(arg);
}
void save_desktop(int i) {