gri3-wm/include
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
..
i3 Use #pragma once 2014-01-01 15:06:57 +01:00
all.h Abstract binding configuration to bindings.[ch] 2014-01-28 08:21:21 +01:00
assignments.h Use #pragma once 2014-01-01 15:06:57 +01:00
atoms.xmacro Respect Motif hint for window decorations 2014-01-18 16:25:37 +01:00
bindings.h Move grab_all_keys to bindings.[ch] 2014-02-15 12:55:38 +01:00
click.h Use #pragma once 2014-01-01 15:06:57 +01:00
cmdparse.h Use #pragma once 2014-01-01 15:06:57 +01:00
commands.h Use #pragma once 2014-01-01 15:06:57 +01:00
commands_parser.h Use #pragma once 2014-01-01 15:06:57 +01:00
con.h Fix 'gcc -Wextra -Wno-unused-parameter'. 2014-01-04 20:43:30 +01:00
config.h Move grab_all_keys to bindings.[ch] 2014-02-15 12:55:38 +01:00
config_directives.h Abstract binding configuration to bindings.[ch] 2014-01-28 08:21:21 +01:00
config_parser.h Use #pragma once 2014-01-01 15:06:57 +01:00
data.h Add `input_type` enum to `Binding` typedef 2014-01-12 22:37:11 +01:00
debug.h Use #pragma once 2014-01-01 15:06:57 +01:00
display_version.h Use #pragma once 2014-01-01 15:06:57 +01:00
ewmh.h Use #pragma once 2014-01-01 15:06:57 +01:00
fake_outputs.h Use #pragma once 2014-01-01 15:06:57 +01:00
floating.h Use #pragma once 2014-01-01 15:06:57 +01:00
handlers.h Use #pragma once 2014-01-01 15:06:57 +01:00
i3.h Use #pragma once 2014-01-01 15:06:57 +01:00
ipc.h Send IPC window events for focus and title changes 2014-02-26 22:24:19 +01:00
key_press.h Use #pragma once 2014-01-01 15:06:57 +01:00
libi3.h Use #pragma once 2014-01-01 15:06:57 +01:00
load_layout.h return parse errors via IPC for append_layout 2014-01-04 21:39:13 +01:00
log.h Use #pragma once 2014-01-01 15:06:57 +01:00
main.h Use #pragma once 2014-01-01 15:06:57 +01:00
manage.h Use #pragma once 2014-01-01 15:06:57 +01:00
match.h Use #pragma once 2014-01-01 15:06:57 +01:00
move.h Use #pragma once 2014-01-01 15:06:57 +01:00
output.h Use #pragma once 2014-01-01 15:06:57 +01:00
queue.h Use #pragma once 2014-01-01 15:06:57 +01:00
randr.h Fix clang -Wextra except -Wunused-parameter. 2014-01-02 22:15:33 +01:00
regex.h Use #pragma once 2014-01-01 15:06:57 +01:00
render.h Use #pragma once 2014-01-01 15:06:57 +01:00
resize.h Use #pragma once 2014-01-01 15:06:57 +01:00
restore_layout.h Use #pragma once 2014-01-01 15:06:57 +01:00
scratchpad.h Use #pragma once 2014-01-01 15:06:57 +01:00
sd-daemon.h Use #pragma once 2014-01-01 15:06:57 +01:00
shmlog.h Use #pragma once 2014-01-01 15:06:57 +01:00
sighandler.h Use #pragma once 2014-01-01 15:06:57 +01:00
startup.h Use #pragma once 2014-01-01 15:06:57 +01:00
tree.h Use #pragma once 2014-01-01 15:06:57 +01:00
util.h Use #pragma once 2014-01-01 15:06:57 +01:00
window.h Respect Motif hint for window decorations 2014-01-18 16:25:37 +01:00
workspace.h Use #pragma once 2014-01-01 15:06:57 +01:00
x.h Use #pragma once 2014-01-01 15:06:57 +01:00
xcb.h Use #pragma once 2014-01-01 15:06:57 +01:00
xcb_compat.h Use #pragma once 2014-01-01 15:06:57 +01:00
xcursor.h Use #pragma once 2014-01-01 15:06:57 +01:00
xinerama.h Use #pragma once 2014-01-01 15:06:57 +01:00
yajl_utils.h Use #pragma once 2014-01-01 15:06:57 +01:00