diff --git a/src/main.c b/src/main.c index 63db08b..5bb23cb 100644 --- a/src/main.c +++ b/src/main.c @@ -5900,6 +5900,13 @@ int main(int argc, char *argv[]) gdkdisplay = gdk_display_get_default(); xdisplay = gdk_x11_display_get_xdisplay(gdkdisplay); +#if GTK_CHECK_VERSION(3, 10, 0) + /* We need to be able to fully trust that the window and monitor sizes + * that GDK reports corresponds to the X ones, so we disable the automatic + * scale handling */ + gdk_x11_display_set_window_scale(gdkdisplay, 1); +#endif + frame_window_atom = XInternAtom(xdisplay, DECOR_INPUT_FRAME_ATOM_NAME, FALSE); win_decor_atom = XInternAtom(xdisplay, DECOR_WINDOW_ATOM_NAME, FALSE); win_blur_decor_atom = XInternAtom(xdisplay, DECOR_BLUR_ATOM_NAME, FALSE);