aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2018-04-15 10:39:32 +0200
committerUli Schlachter <psychon@znc.in>2018-04-15 11:07:31 +0200
commit52b058c2a31fbcd3014c63506eaa8aff25606bed (patch)
tree178d41bad749ceae814742511d46f7c70c8cdd3a
parent98f8ec6a081b215f901a47226c39797260a7d1e1 (diff)
x11 backend: Do not set a back pixel on windows
Before this commit, the x11 server would fill any exposed area with white before the wlroots x11 backend got a chance to do anything. This was e.g. visible when running rootston and resizing the window: When the window becomes larger, the new area is filled with black. By just not setting a back pixel value, this commit gets rid of this behaviour. Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--backend/x11/output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index ff625fbe..df4ff043 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -114,9 +114,8 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {
wl_list_length(&x11->outputs) + 1);
parse_xcb_setup(wlr_output, x11->xcb_conn);
- uint32_t mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
- uint32_t values[2] = {
- x11->screen->white_pixel,
+ uint32_t mask = XCB_CW_EVENT_MASK;
+ uint32_t values[] = {
XCB_EVENT_MASK_EXPOSURE |
XCB_EVENT_MASK_KEY_PRESS | XCB_EVENT_MASK_KEY_RELEASE |
XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE |