diff options
author | yangxiaojuan <[email protected]> | 2023-06-27 15:56:18 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-12 12:20:52 +0200 |
commit | e98fd06346d621d84ea1df97b018f204a9a7e641 (patch) | |
tree | 788cc194a84c27f55461040fdde57cc12137195d | |
parent | 63ad4eb980b8d00f9587070e210c589773df4a12 (diff) | |
download | caja-e98fd06346d621d84ea1df97b018f204a9a7e641.tar.bz2 caja-e98fd06346d621d84ea1df97b018f204a9a7e641.tar.xz |
caja-desktop-window: Fix the xrandr error
fix https://github.com/mate-desktop/caja/issues/1069
-rw-r--r-- | src/caja-desktop-window.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 061b11b7..bb31b2c6 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -155,12 +155,9 @@ caja_desktop_window_screen_size_changed (GdkScreen *screen, CajaDesktopWindow *window) { int width_request, height_request; - int scale; - - scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen)); - width_request = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; - height_request = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; + width_request = gdk_screen_get_width(screen); + height_request = gdk_screen_get_height(screen); g_object_set (window, "width_request", width_request, |