Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. index c217cbb..06f0322 100644
  2. --- a/src/handlers.c
  3. +++ b/src/handlers.c
  4. @@ -561,7 +561,7 @@ static bool handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t
  5. x_push_changes(croot);
  6.  
  7. if (window_name_changed(con->window, old_name))
  8. - ipc_send_window_event("title", con);
  9. + ipc_send_window_event("title1", con);
  10.  
  11. FREE(old_name);
  12.  
  13. @@ -586,7 +586,7 @@ static bool handle_windowname_change_legacy(void *data, xcb_connection_t *conn,
  14. x_push_changes(croot);
  15.  
  16. if (window_name_changed(con->window, old_name))
  17. - ipc_send_window_event("title", con);
  18. + ipc_send_window_event("title2", con);
  19.  
  20. FREE(old_name);
  21.  
  22. diff --git a/src/ipc.c b/src/ipc.c
  23. index 66c28bd..0ab6d3c 100644
  24. --- a/src/ipc.c
  25. +++ b/src/ipc.c
  26. @@ -1089,7 +1089,7 @@ void ipc_send_workspace_focus_event(Con *current, Con *old) {
  27. * also the window container, in "container".
  28. */
  29. void ipc_send_window_event(const char *property, Con *con) {
  30. - DLOG("Issue IPC window %s event (con = %p, window = 0x%08x)\n",
  31. + DLOG("TIssue IPC window %s event (con = %p, window = 0x%08x)\n",
  32. property, con, (con->window ? con->window->id : XCB_WINDOW_NONE));
  33.  
  34. setlocale(LC_NUMERIC, "C");
  35. @@ -1112,6 +1112,7 @@ void ipc_send_window_event(const char *property, Con *con) {
  36. ipc_send_event("window", I3_IPC_EVENT_WINDOW, (const char *)payload);
  37. y(free);
  38. setlocale(LC_NUMERIC, "");
  39. + DLOG("TIssue IPC window event sent\n");
  40. }
  41.  
  42. /**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement