]> git.sur5r.net Git - i3/i3/blobdiff - i3-nagbar/main.c
Use the DPI setting within the i3-config-wizard and i3-nagbar (#2585)
[i3/i3] / i3-nagbar / main.c
index 674fcb7d13bd5115a13ac978415ea6b91a1755bd..b9f27a87fabc928f9d8e323a46f41427c9aa6f92 100644 (file)
@@ -8,6 +8,8 @@
  * when the user has an error in their configuration file.
  *
  */
+#include "libi3.h"
+
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -30,7 +32,6 @@
 #include <xcb/randr.h>
 #include <xcb/xcb_cursor.h>
 
-#include "libi3.h"
 #include "i3-nagbar.h"
 
 /** This is the equivalent of XC_left_ptr. I’m not sure why xcb doesn’t have a
@@ -467,6 +468,7 @@ int main(int argc, char *argv[]) {
         color_border_bottom = draw_util_hex_to_color("#ab7100");
     }
 
+    init_dpi();
     font = load_font(pattern, true);
     set_font(&font);