From kde-bugs-dist Fri Feb 26 13:17:31 1999 From: David Woodhouse Date: Fri, 26 Feb 1999 13:17:31 +0000 To: kde-bugs-dist Subject: Bug#827: kwm behaviour wrt: Shade vs. Maximise on doubleclick in titlebar X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=92024269413868 I have set the kwm action upon double-click in the titlebar to 'Shade'. However, the actual behaviour changes every time I log in. It alternates between the desired 'shade' and the undesired 'maximise'. I'm serious here - it alternates. I log in once, open a kvt, and double-click shades the window. Touch nothing else, log out and back in again, and double -click will maximise the window. Repeat and it's back to shading. Copying a known-good .kde/apps/config/kwmrc file into place before logging in will reliably ensure correct behaviour. Further investigation shows that there were two entries for the 'TitlebarDoubleClickCommmand' in the config file. Each time kwm resaved its options, it wrote them in reverse order, and hence the order of the TitlebarDoubleClickCommand was changed each time. There are two bugs here. One is the existence of the duplicate option in the first place - I hadn't ever edited the file by hand, so this must have been the fault of the configuration utility. I'm afraid I can't offer any more debugging information than that, because I can't remember the various options which I tried when I first installed KDE. Someone with a knowledge of the code could certainly reproduce it faster than I could myself. The second bug is that kwm blithely writes out the configuration options that it reads from the file. Surely it should write out the options which it is using, or better still - not write them out at all unless something changes. To rewrite the configuration files every time the program is loaded is error-prone and slow. ---- ---- ---- David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302 Project Leader, Process Information Systems Mobile: (+44) 976 658355 Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK. finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.