all repos — openbox @ d790dc162d24cfdcc236114b50c51af62612646a

openbox fork - make it a bit more like ryudo

check if a client will respond to pings
Dana Jansens danakj@orodu.net
commit

d790dc162d24cfdcc236114b50c51af62612646a

parent

2b5d4b69974aba63f0c22cd5e4b91c456cd70f68

4 files changed, 9 insertions(+), 2 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1507,6 +1507,10 @@ else if (proto[i] == prop_atoms.wm_take_focus)

/* if this protocol is requested, then the window will be notified whenever we want it to receive focus */ self->focus_notify = TRUE; + else if (proto[i] == prop_atoms.net_wm_ping) + /* if this protocol is requested, then the window will allow + pings to determine if it is still alive */ + self->ping = TRUE; #ifdef SYNC else if (proto[i] == prop_atoms.net_wm_sync_request) /* if this protocol is requested, then resizing the
M openbox/client.hopenbox/client.h

@@ -220,6 +220,9 @@ gboolean can_focus;

/*! Notify the window when it receives focus? */ gboolean focus_notify; + /*! Will the client respond to pings? */ + gboolean ping; + #ifdef SYNC /*! The client wants to sync during resizes */ gboolean sync_request;
M openbox/prop.copenbox/prop.c

@@ -98,7 +98,7 @@ /* CREATE(net_wm_user_time_window, "_NET_WM_USER_TIME_WINDOW"); */

CREATE(kde_net_wm_frame_strut, "_KDE_NET_WM_FRAME_STRUT"); CREATE(net_frame_extents, "_NET_FRAME_EXTENTS"); -/* CREATE(net_wm_ping, "_NET_WM_PING"); */ + CREATE(net_wm_ping, "_NET_WM_PING"); #ifdef SYNC CREATE(net_wm_sync_request, "_NET_WM_SYNC_REQUEST"); CREATE(net_wm_sync_request_counter, "_NET_WM_SYNC_REQUEST_COUNTER");
M openbox/prop.hopenbox/prop.h

@@ -136,7 +136,7 @@ /* Atom net_wm_user_time_window; */

Atom net_frame_extents; /* application protocols */ -/* Atom net_wm_ping; */ + Atom net_wm_ping; #ifdef SYNC Atom net_wm_sync_request; Atom net_wm_sync_request_counter;