在 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) {
|
void unmap_notify(unmap_notify_event_t *event) {
|
||||||
client_t *c = get_client_of_window(event->window);
|
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) {
|
if (c) {
|
||||||
|
print_client(c);
|
||||||
if (event->send_event) {
|
if (event->send_event) {
|
||||||
set_window_state(event->window, wm_state_withdrawn);
|
set_window_state(event->window, wm_state_withdrawn);
|
||||||
} else {
|
} else {
|
||||||
@@ -610,10 +613,14 @@ void focus_in(focus_in_event_t *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void property_notify(property_notify_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;
|
if (event->state == property_delete) return;
|
||||||
|
|
||||||
client_t *c = get_client_of_window(event->window);
|
client_t *c = get_client_of_window(event->window);
|
||||||
if (!c) return;
|
if (!c) return;
|
||||||
|
print_client(c);
|
||||||
|
|
||||||
switch (event->xcb_atom) {
|
switch (event->xcb_atom) {
|
||||||
case XCB_ATOM_WM_TRANSIENT_FOR: {
|
case XCB_ATOM_WM_TRANSIENT_FOR: {
|
||||||
xcb_window_t transient_for;
|
xcb_window_t transient_for;
|
||||||
@@ -647,7 +654,7 @@ void manage_window(xcb_window_t window) {
|
|||||||
c->border_width = border_px;
|
c->border_width = border_px;
|
||||||
update_client_name(c);
|
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,
|
logger("== x: %d, y: %d, w: %u, h: %u, bw: %u\n", c->x, c->y, c->width,
|
||||||
c->height, c->border_width);
|
c->height, c->border_width);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user