|
Post by vovchik on Aug 31, 2020 11:13:15 GMT 1
Dear Alex,
Very nice work. Works great on Pi but I have a root window display problem on Mint. Have to investigate that. Dragging is nice and smooth, too.
With kind regards, vovchik
|
|
|
Post by alexfish on Aug 31, 2020 17:31:24 GMT 1
Hi Vovchik
if mint cant be resolved by a blank canvas two alternatives exist , but have not tried
https://cairographics.org/manual/cairo-XCB-Surfaces.html
cairo_surface_t * cairo_xcb_surface_create_for_bitmap (xcb_connection_t *connection, xcb_screen_t *screen, xcb_pixmap_t bitmap, int width, int height);
cairo_xcb_surface_create_with_xrender_format ()
cairo_surface_t * cairo_xcb_surface_create_with_xrender_format (xcb_connection_t *connection, xcb_screen_t *screen, xcb_drawable_t drawable, xcb_render_pictforminfo_t *format, int width, int height);
BR Alex
|
|
|
Post by alexfish on Sept 1, 2020 0:29:47 GMT 1
Hi All & Vovchik
been looking further into the actual event bits ->responce_type gets listed in the docs as a mechanism
however found that looking at PRINT event->response_type
and the reading of expose event struct , one can narrow down the field
when the window is drag wider and the button release shows as 22 27 when the window is decreasing sequence is 12 12 and more, and ends with 22
now hoping the make the resize smaller as instant as the resize bigger
BR Alex
|
|
|
Post by alexfish on Sept 5, 2020 16:33:53 GMT 1
Hi All Now got the XCB cairo demo up-to full speed on the window re-size events , esp when window size is reduced the code is on a 'as is basis' , since from here 'code base final will be posted on the cairo2 thread. IE It needs a clean up:: how fast is it :: give it try BR Alex Attachments:XCB.bac.bz2 (4.42 KB)
|
|
|
Post by vovchik on Sept 5, 2020 19:34:41 GMT 1
Dear Alex,
Thanks. Works fine on my Pi4.
With kind regards, vovchik
|
|