Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1df95829d97fd558152f8f8013d7a4afd559dc0d
commit 1df95829d97fd558152f8f8013d7a4afd559dc0d Author: PacMiam <[email protected]> Date: Sat Dec 28 11:42:49 2013 +0100 i3-4.7-2-i686 * Fix i3bar diff --git a/source/x11-extra/i3/FrugalBuild b/source/x11-extra/i3/FrugalBuild index eefe4da..2236c94 100644 --- a/source/x11-extra/i3/FrugalBuild +++ b/source/x11-extra/i3/FrugalBuild @@ -3,7 +3,7 @@ pkgname=i3 pkgver=4.7 -pkgrel=1 +pkgrel=2 pkgdesc="An improved dynamic tiling window manager" url="http://i3wm.org/" depends=('libxcursor' 'xcb-util>=0.3.9' 'xcb-util-wm>=0.3.9' 'xcb-util-keysyms' \ @@ -12,6 +12,7 @@ makedepends=('bison' 'flex' 'pango') groups=('x11-extra') archs=('i686' 'x86_64') up2date="lynx -dump http://i3wm.org/downloads/ | Flasttar" -source=(http://i3wm.org/downloads/$pkgname-$pkgver.tar.bz2 i3.patch) +source=(http://i3wm.org/downloads/$pkgname-$pkgver.tar.bz2 i3.patch i3bar.patch) sha1sums=('37c8f13b96447d572b95ebf7c74140a96a17529e' \ - '027ddc27b671d800fe2e89df9ab2d0984da3899d') + '027ddc27b671d800fe2e89df9ab2d0984da3899d' \ + '9bf63ec87573c53cee7375a06d720474dbc3e7b3') diff --git a/source/x11-extra/i3/i3bar.patch b/source/x11-extra/i3/i3bar.patch new file mode 100644 index 0000000..6636d32 --- /dev/null +++ b/source/x11-extra/i3/i3bar.patch @@ -0,0 +1,46 @@ +diff --git a/i3bar/src/child.c b/i3bar/src/child.c +index 1bd0d25..527e353 100644 +--- a/i3bar/src/child.c ++++ b/i3bar/src/child.c +@@ -456,6 +456,9 @@ void child_write_output(void) { + * + */ + void start_child(char *command) { ++ if (command == NULL) ++ return; ++ + /* Allocate a yajl parser which will be used to parse stdin. */ + memset(&callbacks, '\0', sizeof(yajl_callbacks)); + callbacks.yajl_map_key = stdin_map_key; + + +diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c +index d3dc948..8286103 100644 +--- a/i3bar/src/xcb.c ++++ b/i3bar/src/xcb.c +@@ -603,17 +603,18 @@ static void handle_client_message(xcb_client_message_event_t* event) { + * exits/crashes. */ + xcb_change_save_set(xcb_connection, XCB_SET_MODE_INSERT, client); + ++ trayclient *tc = smalloc(sizeof(trayclient)); ++ tc->win = client; ++ tc->xe_version = xe_version; ++ tc->mapped = false; ++ TAILQ_INSERT_TAIL(output->trayclients, tc, tailq); ++ + if (map_it) { + DLOG("Mapping dock client\n"); + xcb_map_window(xcb_connection, client); + } else { + DLOG("Not mapping dock client yet\n"); + } +- trayclient *tc = smalloc(sizeof(trayclient)); +- tc->win = client; +- tc->xe_version = xe_version; +- TAILQ_INSERT_TAIL(output->trayclients, tc, tailq); +- + /* Trigger an update to copy the statusline text to the appropriate + * position */ + configure_trayclients(); + + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
