On Sun, 10 Jun 2012 at 19:57:05 +0300, Yuri Karaban wrote: > >>>>> "CRM" == Carlos R Mafra <[email protected]> writes: > > >> First thing I thought is to hack into Placement Origin, and > >> implement some special values like -1, -1 to center either > >> horizontally or vertically in Automatic placement mode. > >> > >> But later I thought that I better to implement it as different > >> placement strategy. Special values for Automatic mode need more > >> changes in WPrefs, and I'm not good in interface design. On the > >> other hand adding new placer to WPrefs is trivial. > > CRM>> But you can use the current slider in WPrefs to have a custom > CRM>> placement origin, and you can choose the (x,y) values which > CRM>> match with the center of your screen. > > CRM>> So no change in WPrefs nor wmaker seems to be necessary, > CRM>> that's what I meant. > > I tried to play with Placement Origin first, but I found that fixed > values is just not enough. > > When I adjust placement origin for big windows (like firefox) then small > windows (terminal emulator) are displayed at the top of the screen and > it's very tedious to lift up my head to read terminal emulator. > > When I adjust placement for the terminal emulator, firefox starts in the > way that bottom part of it is offscreen. > > So I came to the need to have some special values to center window > regardless of its size. And as I told before, I thought about special > values for automatic placement but finally decided to add this feature > as separate placement function.
Right, makes sense. I've just tested your patch and the result is indeed nice. I pushed it to #next after ammending a few trivial coding style violations regarding if's with single statements. Take a look at the result. Thanks. -- To unsubscribe, send mail to [email protected].
