Hi all,

I'm using Suse Linux, with KDE, and have a vim function to set my window size 
on startup.
The function just sets &columns and &lines, and calls winpos, depending upon 
various other variables I provide.
Previously I was registering this function to be called by an autocmd on the 
GUIEnter event - but I found that the window seemed to be resized by the 
operating system afterwards.
I tried changing to the VimEnter event which should come last - and that works 
most of the time, but not always.
I tried inserting a 5 second sleep into my function triggered by VimEnter - so 
the operating system could mess around with the window size before I then set 
it to the size I want - but no, I get a 5 second delay, my window is then set 
to my size - and then reset by the OS.
It's not dramatically reset - eg, I set it to 360 columns (spanning two 
monitors), and the OS reset it to 315.  If I run my function again manually, it 
sets the 360 columns perfectly.

I guess there may be some X related ways to achieve what I want - but all I 
really want to do is wait until after the operating system has had it's play 
with the window size, and then let my function go to work.

Anyone got any hints please?

Thanks in advance,
John

Reply via email to