在 log 信息中 window 统一显示为 16 进制格式
This commit is contained in:
@@ -550,7 +550,10 @@ void map_request(map_request_event_t *event) {
|
||||
|
||||
void unmap_notify(unmap_notify_event_t *event) {
|
||||
client_t *c = get_client_of_window(event->window);
|
||||
logger("unmap window: 0x%x, send event: %s\n", event->window,
|
||||
event->send_event ? "true" : "false");
|
||||
if (c) {
|
||||
print_client(c);
|
||||
if (event->send_event) {
|
||||
set_window_state(event->window, wm_state_withdrawn);
|
||||
} else {
|
||||
@@ -610,10 +613,14 @@ void focus_in(focus_in_event_t *event) {
|
||||
}
|
||||
|
||||
void property_notify(property_notify_event_t *event) {
|
||||
logger("window: 0x%x state: %u, atom: %u\n", event->window, event->state,
|
||||
event->xcb_atom);
|
||||
if (event->state == property_delete) return;
|
||||
|
||||
client_t *c = get_client_of_window(event->window);
|
||||
if (!c) return;
|
||||
print_client(c);
|
||||
|
||||
switch (event->xcb_atom) {
|
||||
case XCB_ATOM_WM_TRANSIENT_FOR: {
|
||||
xcb_window_t transient_for;
|
||||
@@ -647,7 +654,7 @@ void manage_window(xcb_window_t window) {
|
||||
c->border_width = border_px;
|
||||
update_client_name(c);
|
||||
|
||||
logger("== manage window: %u\n", window);
|
||||
logger("== manage window: 0x%x\n", window);
|
||||
logger("== x: %d, y: %d, w: %u, h: %u, bw: %u\n", c->x, c->y, c->width,
|
||||
c->height, c->border_width);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user