X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmain.c;h=5ff9afe023bda9f17e0cff6b61515838d0afdbb4;hb=702906d0cf4cce5b850a0f7cc669b78e205ad9aa;hp=ca2617c6d5e0b620568b3a96b0ffcf663f39a60f;hpb=e567cf436c31b6d91f4e69e80b3af2a278aa70fa;p=i3%2Fi3 diff --git a/src/main.c b/src/main.c index ca2617c6..5ff9afe0 100644 --- a/src/main.c +++ b/src/main.c @@ -316,7 +316,7 @@ int main(int argc, char *argv[]) { init_logging(); /* On release builds, disable SHM logging by default. */ - shmlog_size = (is_debug_build() ? default_shmlog_size : 0); + shmlog_size = (is_debug_build() || strstr(argv[0], "i3-with-shmlog") != NULL ? default_shmlog_size : 0); start_argv = argv; @@ -340,11 +340,11 @@ int main(int argc, char *argv[]) { only_check_config = true; break; case 'v': - printf("i3 version " I3_VERSION " © 2009-2013 Michael Stapelberg and contributors\n"); + printf("i3 version " I3_VERSION " © 2009-2014 Michael Stapelberg and contributors\n"); exit(EXIT_SUCCESS); break; case 'm': - printf("Binary i3 version: " I3_VERSION " © 2009-2013 Michael Stapelberg and contributors\n"); + printf("Binary i3 version: " I3_VERSION " © 2009-2014 Michael Stapelberg and contributors\n"); display_running_version(); exit(EXIT_SUCCESS); break; @@ -761,6 +761,9 @@ int main(int argc, char *argv[]) { x_set_i3_atoms(); ewmh_update_workarea(); + /* Set the _NET_CURRENT_DESKTOP property. */ + ewmh_update_current_desktop(); + struct ev_io *xcb_watcher = scalloc(sizeof(struct ev_io)); struct ev_io *xkb = scalloc(sizeof(struct ev_io)); xcb_check = scalloc(sizeof(struct ev_check));