aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog3
-rwxr-xr-xsrc/config.h2
-rw-r--r--src/dminiwm.c11
3 files changed, 14 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 95a0318..c960952 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,6 @@
+21/11/11
+ Fix for transient windows not being managed
+
15/11/11
Fix for when trying to swap master with only one window
diff --git a/src/config.h b/src/config.h
index e6f8f2a..19f656b 100755
--- a/src/config.h
+++ b/src/config.h
@@ -1,4 +1,4 @@
- /* config.h for dminiwm.c [ 0.1.5 ]
+ /* config.h for dminiwm.c [ 0.1.6 ]
*
* Started from catwm 31/12/10
* Bad window error checking and numlock checking used from
diff --git a/src/dminiwm.c b/src/dminiwm.c
index 8f7e908..2c4915e 100644
--- a/src/dminiwm.c
+++ b/src/dminiwm.c
@@ -1,4 +1,4 @@
-/* dminiwm.c [ 0.1.5 ]
+/* dminiwm.c [ 0.1.6 ]
*
* I started this from catwm 31/12/10
* Bad window error checking and numlock checking used from
@@ -706,6 +706,15 @@ void maprequest(XEvent *e) {
return;
}
+ Window trans = None;
+ if (XGetTransientForHint(dis, ev->window, &trans) && trans != None) {
+ add_window(ev->window);
+ XMapWindow(dis, ev->window);
+ XSetInputFocus(dis,ev->window,RevertToParent,CurrentTime);
+ XRaiseWindow(dis,ev->window);
+ return;
+ }
+
unsigned long count, j, extra;
Atom realType;
int realFormat;