On 10 August 2011 09:26, Nick <suckless-...@njw.me.uk> wrote:
> Attached (pwwinprop is the popped up enter password window,
> existingwinprop is the already open oocalc).

Bad news! Assuming existingwin is XID 0x280000d, there is nothing in
pwwin's xprops to suggest that it should be treated in any other way.
Which means the only solution would be a hack like the one attached
(untested).

Sad times.

cls
diff -r 335c279dbff6 dwm.c
--- a/dwm.c	Tue Jun 14 22:28:16 2011 +0100
+++ b/dwm.c	Wed Aug 10 15:49:25 2011 +0100
@@ -1092,12 +1092,15 @@
 	Client *c, *t = NULL;
 	Window trans = None;
 	XWindowChanges wc;
+	XClassHint ch = { 0 };
 
 	if(!(c = calloc(1, sizeof(Client))))
 		die("fatal: could not malloc() %u bytes\n", sizeof(Client));
 	c->win = w;
 	updatetitle(c);
-	if(XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) {
+	XGetClassHint(dpy, w, &ch);
+	if(XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans)) && (!ch.res_class || !ch.res_name
+	|| strcmp(ch.res_class, "OpenOffice.org 3.2") || strcmp(ch.res_name, "VCLSalFrame"))) {
 		c->mon = t->mon;
 		c->tags = t->tags;
 	}

Reply via email to