]> git.sur5r.net Git - i3/i3/commitdiff
Make small DLOG improvements 3674/head
authorOrestis Floros <orestisf1993@gmail.com>
Sat, 30 Mar 2019 11:43:36 +0000 (13:43 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Wed, 3 Apr 2019 15:51:34 +0000 (18:51 +0300)
- manage_window: log the window in the start of the function so that the
reader knows what the rest of the messages refer to, even if the
function exits prematurely.
- con_is_floating: Message is spammy

src/con.c
src/manage.c

index a88909e1695197eccc88d43642374f317b1e54df..4b640eb827032324bd30cdd6a436895cea2c0f97 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -539,7 +539,6 @@ bool con_is_internal(Con *con) {
  */
 bool con_is_floating(Con *con) {
     assert(con != NULL);
-    DLOG("checking if con %p is floating\n", con);
     return (con->floating >= FLOATING_AUTO_ON);
 }
 
index c146812396951683e5bbf4239d4f02bc3aaac69d..80faa167c2a94f9584395d70204fb167c7bd60fc 100644 (file)
@@ -80,6 +80,8 @@ void restore_geometry(void) {
  */
 void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cookie,
                    bool needs_to_be_mapped) {
+    DLOG("window 0x%08x\n", window);
+
     xcb_drawable_t d = {window};
     xcb_get_geometry_cookie_t geomc;
     xcb_get_geometry_reply_t *geom;
@@ -163,8 +165,6 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
     wm_user_time_cookie = GET_PROPERTY(A__NET_WM_USER_TIME, UINT32_MAX);
     wm_desktop_cookie = GET_PROPERTY(A__NET_WM_DESKTOP, UINT32_MAX);
 
-    DLOG("Managing window 0x%08x\n", window);
-
     i3Window *cwindow = scalloc(1, sizeof(i3Window));
     cwindow->id = window;
     cwindow->depth = get_visual_depth(attr->visual);