Skip to content

Commit

Permalink
X11Adapter: Log screen resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirias committed Oct 11, 2024
1 parent 6423ff8 commit 0788726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bin/xmoji/x11adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,8 @@ int X11Adapter_init(int argc, char **argv, const char *locale,
double resdpi = XRdb_float(rdb, XRdbKey("dpi"), XRQF_OVERRIDES,
0., 72., 512.);
if (resdpi) dpi = resdpi;
PSC_Log_fmt(PSC_L_INFO, "Screen resolution%s: %.2f dpi",
resdpi ? " (overridden)" : "", dpi);

if (xcb_cursor_context_new(c, s, &cctx) < 0)
{
Expand Down

0 comments on commit 0788726

Please sign in to comment.