X window refresh
Posted: Fri Dec 05, 2008 3:43 am
I'm having a little trouble with the Linux GUI version of bochs.
Bochs has one X top-level window (called the VGAW). My GUI frontend has another. My window is working fine, but the VGAW is not updating properly. In fact: when bochs is sleeping (waiting for user input), the VGAW is not being updated at all. If part of the VGAW is overpainted and then uncovered, it stays a black rectangle until the user types a command (minutes or hours later). I've tried just sending an XFlush command every half second to the window, but it didn't do anything.
So: is there some generic series of steps that I need to do to force an X window to refresh? Do I need to "queue a draw event?" If anyone can give me a set of X functions to call, that would be great -- because I know almost nothing about X windows.
Bochs has one X top-level window (called the VGAW). My GUI frontend has another. My window is working fine, but the VGAW is not updating properly. In fact: when bochs is sleeping (waiting for user input), the VGAW is not being updated at all. If part of the VGAW is overpainted and then uncovered, it stays a black rectangle until the user types a command (minutes or hours later). I've tried just sending an XFlush command every half second to the window, but it didn't do anything.
So: is there some generic series of steps that I need to do to force an X window to refresh? Do I need to "queue a draw event?" If anyone can give me a set of X functions to call, that would be great -- because I know almost nothing about X windows.