From dbc0860ddb6afc70fed0102cfbab498612d5336f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Sep 2007 13:55:21 +0200 Subject: [PATCH] fix: do have_randr/shape copy in all conf --- awesome.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index 7a4830070..cc4f3f89f 100644 --- a/awesome.c +++ b/awesome.c @@ -312,16 +312,21 @@ main(int argc, char *argv[]) [UnmapNotify] = handle_event_unmapnotify, }; - /* XXX check for shape extension */ + /* check for shape extension */ if((awesomeconf[0].have_shape = XShapeQueryExtension(dpy, &shape_event, &e_dummy))) handler[shape_event] = handle_event_shape; - /* XXX check for randr extension */ + /* check for randr extension */ if((awesomeconf[0].have_randr = XRRQueryExtension(dpy, &randr_event_base, &e_dummy))) handler[randr_event_base + RRScreenChangeNotify] = handle_event_randr_screen_change_notify; for(screen = 0; screen < ScreenCount(dpy); screen++) + { + awesomeconf[screen].have_shape = awesomeconf[0].have_shape; + awesomeconf[screen].have_randr = awesomeconf[0].have_randr; scan(dpy, screen, &dc[screen], &awesomeconf[screen]); + } + XSync(dpy, False); /* main event loop, also reads status text from stdin */