[openbox] mouse wrap to other side of screen

Mikael Magnusson mangosoft at comhem.se
Mon Jan 19 02:15:33 EST 2004


On Sun, 18 Jan 2004, John Russell wrote:

> > I'm no master at C programming, but doesn't this create new windows 
> > everytime you reconfigure without destroying the old ones?
> > 
> 
> Uh, well... err yes it does appear so, but I stole it from your code, so
> I believe the blame lies squarely on _your_ shoulders ;-). No seriously,
> that's a good point.  I believe I have addressed that issue in this
> updated patch along with adding the boolean option warpPointer to
> config.[hc] which can used in rc.xml now.  It defaults to off. 
> 
> 2 more things that are bugging me that I would like help with.
> 
> 1) I am using XDestroyWindow to make sure that the windows don't pile
> up, but I would like to check to see if the windows are created before I
> destroy them.  It seems more efficient to avoid the XDestroyWindow call
> if it isn't necessary.  So how do I test the warp_window_east/west
> variables to see if they have been set yet?  Or am I going about it all
> wrong?

iirc there is a reconfig boolean in the startup function, if it's true, 
don't create the windows.
dunno about the other thing

--
Mikael Magnusson



More information about the openbox mailing list