summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fc1bd4c)
1) back buffer is totally cleared, background color not working then.
2) loading my usual cario / lua script crashes it with BadDrawable passed to X_GetGeometry
{
#ifdef HAVE_XDBE
if (use_xdbe) {
{
#ifdef HAVE_XDBE
if (use_xdbe) {
- /* The swap action is XdbeBackground, which clears */
+/*
+ The swap action is XdbeBackground, which clears
+*/
+ if (display && window.back_buffer) { // make sure these are !null
+ /* there is some extra space for borders and outlines */
+ XFillRectangle(display, window.back_buffer, window.gc_back,
+ text_start_x - window.border_inner_margin - window.border_outer_margin - window.border_width,
+ text_start_y - window.border_inner_margin - window.border_outer_margin - window.border_width,
+ text_width + window.border_inner_margin * 2 + window.border_outer_margin * 2 + window.border_width * 2,
+ text_height + window.border_inner_margin * 2 + window.border_outer_margin * 2 + window.border_width * 2);
+ }
+
+
} else
#endif
if (display && window.window) { // make sure these are !null
} else
#endif
if (display && window.window) { // make sure these are !null
XCopyArea(display, window.drawable, window.window,
window.gc_back, 0, 0, window.width, window.height, 0, 0);
/* FIXME should fill w/ window background */
XCopyArea(display, window.drawable, window.window,
window.gc_back, 0, 0, window.width, window.height, 0, 0);
/* FIXME should fill w/ window background */
-// XFillRectangle(display, window.back_buffer, window.gc,
-// 0, 0, window.width, window.height);
+ XSet
+/*
+ XFillRectangle(display, window.back_buffer, window.gc,
+ 0, 0, window.width, window.height);
+*/
}
}
#endif /* HAVE_XDBE */
}
}
#endif /* HAVE_XDBE */