Compare commits
No commits in common. "9244d2b657e79d8ba3e4acc3eb5bbc3e018e8d42" and "764dbaa126f9487d01541034e3b2b647239bdb49" have entirely different histories.
9244d2b657
...
764dbaa126
11
wdmtg.c
11
wdmtg.c
@ -303,7 +303,7 @@ x_window_title(xcb_window_t window)
|
|||||||
GString *title;
|
GString *title;
|
||||||
if (!(title = x_text_property(window, gen.atom_net_wm_name))
|
if (!(title = x_text_property(window, gen.atom_net_wm_name))
|
||||||
&& !(title = x_text_property(window, XCB_ATOM_WM_NAME)))
|
&& !(title = x_text_property(window, XCB_ATOM_WM_NAME)))
|
||||||
return g_strdup("");
|
return g_strdup("broken");
|
||||||
return g_string_free(title, false);
|
return g_string_free(title, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -540,16 +540,11 @@ generator_init(void)
|
|||||||
g_free(subpath);
|
g_free(subpath);
|
||||||
g_key_file_free(kf);
|
g_key_file_free(kf);
|
||||||
|
|
||||||
// Write a start marker so that we can reliably detect interruptions
|
|
||||||
struct event *event = g_slice_new0(struct event);
|
|
||||||
event->timestamp = -1;
|
|
||||||
g_async_queue_push(g.queue, event);
|
|
||||||
|
|
||||||
update_current_window();
|
|
||||||
|
|
||||||
gint64 timeout_ms = timeout * 1000;
|
gint64 timeout_ms = timeout * 1000;
|
||||||
gen.idle_timeout.hi = timeout_ms >> 32;
|
gen.idle_timeout.hi = timeout_ms >> 32;
|
||||||
gen.idle_timeout.lo = timeout_ms;
|
gen.idle_timeout.lo = timeout_ms;
|
||||||
|
|
||||||
|
update_current_window();
|
||||||
set_idle_alarm(&gen.idle_alarm_inactive,
|
set_idle_alarm(&gen.idle_alarm_inactive,
|
||||||
XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON, gen.idle_timeout);
|
XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON, gen.idle_timeout);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user