commit - 70c441f34ae6efd331b58999cf2e384fda46b795
commit + 8df0adff98384c42e48ba39cb1f8e8cf2559854f
blob - 04f9802db7f7f7fdae95cbd69298af6a4af608b4
blob + 6832e3b0398b84ba0fa019fa28a8d040ad7023f3
--- layout.c
+++ layout.c
static struct aui_rowpar default_rowconfigure = {
.minsize = 0,
- .weight = 1,
+ .weight = 0,
.uniform = 0,
.pad = 0,
};
-static struct aui_rowpar default_columnconfigure = {
+static struct aui_columnpar default_columnconfigure = {
.minsize = 0,
- .weight = 1,
+ .weight = 0,
.uniform = 0,
.pad = 0,
};
blob - c9fef909ed137c86b40d0e076124e09cbc3fce13
blob + 1330f49087e91c7880509a90081d9925ce1df6f6
--- xcb.c
+++ xcb.c
static int config_xcb(struct aui_dri_xcb*);
static void set_pixmap_xcb(struct aui_window_xcb *);
static struct aui_window_xcb *find_window_xcb(xcb_window_t);
+static void set_name_xcb(struct aui_window_xcb *, const char *);
int
xcb_driver_open(void)
ww->geom.width = config->width;
ww->geom.height = config->height;
set_pixmap_xcb(aw_xcb);
+ set_name_xcb(aw_xcb, config->title);
xcb_map_window(dri_xcb->conn, aw_xcb->xw);
xcb_flush(dri_xcb->conn);
return aw;
return NULL;
}
+
+static void
+set_name_xcb(struct aui_window_xcb *aw_xcb, const char *title)
+{
+ struct aui_dri_xcb *dri_xcb = (struct aui_dri_xcb *)driver;
+ xcb_change_property(dri_xcb->conn,
+ XCB_PROP_MODE_REPLACE,
+ aw_xcb->xw,
+ XCB_ATOM_WM_NAME,
+ XCB_ATOM_STRING,
+ 8,
+ strlen(title),
+ title
+ );
+}