[Xfce4-commits] [xfce/xfce4-settings] 01/01: Throw warning when monitors exceed max screen size

noreply at xfce.org noreply at xfce.org
Fri Oct 5 23:55:13 CEST 2018


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 1784b607ac7d084a16500ed25ccdfbded1bb6343
Author: Florian Schüller <florian.schueller at gmail.com>
Date:   Fri Oct 5 23:53:45 2018 +0200

    Throw warning when monitors exceed max screen size
---
 xfsettingsd/displays.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index acd3bfe..8f536c9 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -575,7 +575,12 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
                     gdk_screen_height (), gdk_screen_width (), gdk_screen_height_mm (),
                     gdk_screen_width_mm (), helper->height, helper->width, helper->mm_height,
                     helper->mm_width);
-
+    if (helper->width > max_width || helper->height > max_height)
+    {
+        g_warning ("Your screen can't handle the requested size. "
+                   "%dx%d exceeds the maximum: %dx%d",
+                   helper->width, helper->height, max_width, max_height);
+    }
     /* set the screen size only if it's really needed and valid */
     if (helper->width >= min_width && helper->width <= max_width
         && helper->height >= min_height && helper->height <= max_height

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list