all repos — openbox @ f18d9a95399f9588151bf142b0f03b0781527171

openbox fork - make it a bit more like ryudo

don't allow comparison with timestamps to CurrentTime. it just doesn't make any sense.

(also client interface changed, that is in the next commit)
Dana Jansens danakj@orodu.net
commit

f18d9a95399f9588151bf142b0f03b0781527171

parent

34196a1ef3fc92bf7f0ed663acedc8f9cffa5958

1 files changed, 4 insertions(+), 1 deletions(-)

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

@@ -1163,7 +1163,7 @@ else if (msgtype == prop_atoms.net_wm_icon) {

client_update_icons(client); } else if (msgtype == prop_atoms.net_wm_user_time) { - client_update_user_time(client, TRUE); + client_update_user_time(client); } else if (msgtype == prop_atoms.sm_client_id) { client_update_sm_client_id(client);

@@ -1378,6 +1378,9 @@ }

gboolean event_time_after(Time t1, Time t2) { + g_assert(t1 != CurrentTime); + g_assert(t2 != CurrentTime); + /* Timestamp values wrap around (after about 49.7 days). The server, given its current time is represented by timestamp T, always interprets