I'm playing with an existing X application program, modifying things to suit my requirements.
Most things I seem to have fathomed out OK but I want the ability to change some window properties (it has only one window) 'on the fly'.
Initially I just want to toggle one property when the right button (button 3) is clicked. I can catch the button event OK, that's not a problem. I then call XChangeProperty() to change the property.
But what do I need to do to get the window redisplayed having called XChangeProperty() ?
Chris Green chris@areti.co.uk wrote:
But what do I need to do to get the window redisplayed having called XChangeProperty() ?
It's been ages since I programmed X directly, but I think you can send a ConfigureRequest event. This shouldn't be needed, as the PropertyNotify should trigger things, but I'm sure I had to do more for some changes.