[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: I can't invalidate
From: Andrzej Borucki <borucki.andrzej () gmail ! com>
Date: 2015-12-09 7:41:25
Message-ID: CAE2KeA+b=vdsM9y9qvET6-hcBY+dPrCj5JQBUELkUznka-Fs_A () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I try invalidate window using XCB library. I draw text and after second
(have timer), changed text and send message:
void invalidate()
{
xcb_expose_event_t invalidate_event;
invalidate_event.window = window;
invalidate_event.response_type = XCB_EXPOSE;
invalidate_event.x = 0;
invalidate_event.y = 0;
invalidate_event.width = WIDTH;
invalidate_event.height = HEIGHT;
xcb_send_event_checked(connection, false, window,
XCB_EVENT_MASK_EXPOSURE, (char*)&invalidate_event);
xcb_flush(connection);
}
but no new XCB_EXPOSE events...
[Attachment #5 (text/html)]
<div dir="ltr">I try invalidate window using XCB library. I draw text and after \
second (have timer), changed text and send message:<div><div>void \
invalidate()</div><div>{</div><div> xcb_expose_event_t \
invalidate_event;</div><div> invalidate_event.window = window;</div><div> \
invalidate_event.response_type = XCB_EXPOSE;</div><div> invalidate_event.x = \
0;</div><div> invalidate_event.y = 0;</div><div> invalidate_event.width = \
WIDTH;</div><div> invalidate_event.height = HEIGHT;</div><div> \
xcb_send_event_checked(connection, false, window, XCB_EVENT_MASK_EXPOSURE, \
(char*)&invalidate_event);</div><div> \
xcb_flush(connection);</div><div>}</div></div><div>but no new XCB_EXPOSE \
events...</div></div>
[Attachment #6 (text/plain)]
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic