Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Allow for rendering without composite extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscon committed May 18, 2020
1 parent a0d3fdf commit 13e48e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DEPS += playerctl-1.0
endif

LDFLAGS += -flto -O2
LDLIBS += -liw -lxcb -lpthread -lxcb-randr -lxcb-ewmh -lxcb-icccm -lxkbcommon -lxkbcommon-x11 -lxcb-xkb -lm `pkg-config --libs $(DEPS)`
LDLIBS += -liw -lxcb -lpthread -lxcb-composite -lxcb-randr -lxcb-ewmh -lxcb-icccm -lxkbcommon -lxkbcommon-x11 -lxcb-xkb -lm `pkg-config --libs $(DEPS)`
PROGRAM := yabar
DOCS := $(PROGRAM).1
PREFIX ?= /usr
Expand Down
1 change: 1 addition & 0 deletions src/ya_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ void ya_create_bar(ya_bar_t * bar) {
*/
xcb_visualtype_t * ya_get_visualtype() {
xcb_depth_iterator_t depth_iter;
if(!xcb_composite_name_window_pixmap(ya.scr)) ya.depth=24;
depth_iter = xcb_screen_allowed_depths_iterator (ya.scr);
xcb_visualtype_iterator_t visual_iter;
for (; depth_iter.rem; xcb_depth_next (&depth_iter)) {
Expand Down

0 comments on commit 13e48e2

Please sign in to comment.