i3/testcases
Marco Hunsicker 00ee86de79 Send IPC window events for focus and title changes
This patch fixes ticket #1168 to extend the window IPC event mechanism
to send IPC events for window focus and title changes. The newly added
window events use the same format as the already established "new"
event.

Specifically this patch:

* Moves the ipc_send_window_event() function from src/manage.c into
  src/ipc.c and adds an argument for the change property of the event
* Updates src/manage.c to use the new function signature. To ensure
  that the "new" event does not send the same event data as the
  "focus" event, setting focus now happens after the "new" event
  has been sent
* Adds IPC focus event notification to src/x.c. To workaround a problem
  during window close when accessing the window name, a function has been
  added to query whether a window is actually attached to its parent. To
  avoid obsolete focus notification, a new field has been added to keep
  track of the focus without any interference by the click handling
* Adds IPC title event notification to src/handlers.c. To avoid
  obsolete title notification, a function has been added to determine
  whether a window title has actually changed
* Updates the IPC documentation to include the new events
* Updates testcases/t/205-ipc-windows.t to include the "focus" event
  in order to ensure the correct event sequence
* Adds two new unit tests, b/testcases/t/219-ipc-window-focus.t and
  b/testcases/t/220-ipc-window-title.t to ensure proper "focus" and
 "title" events
2014-02-26 22:24:19 +01:00
..
lib GET_TREE: serialize container type into a string 2013-12-22 21:52:49 +01:00
t Send IPC window events for focus and title changes 2014-02-26 22:24:19 +01:00
.gitignore Add .clang_complete and Xdummy.so to gitignore 2013-10-23 23:24:04 +02:00
complete-run.pl Testcases: remove "latest" if it is a symbolic link 2013-10-19 10:05:33 +02:00
i3-test.config tests: make t/65-for-window.t use separate i3 instances 2011-08-02 19:21:09 +02:00
Makefile.PL Testcases: Use AnyEvent::I3 version 0.15 2013-10-19 10:06:08 +02:00
new-test Remove pointer warp from test boilerplate 2013-12-10 21:52:50 +01:00
restart-state.golden tests: implement restart testing (actual option still missing) 2011-12-21 23:15:30 +00:00
Xdummy add Xdummy script to start a headless X11 server 2011-07-25 15:37:46 +02:00