[Xfce4-commits] [apps/xfce4-screensaver] 348/425: Tidy up xfce-rr-private.h

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:53:15 CEST 2018


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

b   l   u   e   s   a   b   r   e       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 apps/xfce4-screensaver.

commit b011935a055e802d8f1b17c7f9e85413eb738cea
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Oct 3 07:18:38 2018 -0400

    Tidy up xfce-rr-private.h
---
 src/xfce-rr-private.h | 73 +++++++++++++++------------------------------------
 src/xfce-rr.c         | 16 -----------
 2 files changed, 21 insertions(+), 68 deletions(-)

diff --git a/src/xfce-rr-private.h b/src/xfce-rr-private.h
index b24ddb1..543b51d 100644
--- a/src/xfce-rr-private.h
+++ b/src/xfce-rr-private.h
@@ -11,67 +11,36 @@ typedef struct ScreenInfo ScreenInfo;
 
 struct ScreenInfo
 {
-    int			min_width;
-    int			max_width;
-    int			min_height;
-    int			max_height;
-
 #ifdef HAVE_RANDR
-    XRRScreenResources *resources;
+    XRRScreenResources   *resources;
+    RROutput              primary;
 #endif
-    
-    XfceRROutput **	outputs;
-    XfceRRCrtc **	crtcs;
-    XfceRRMode **	modes;
-    
-    XfceRRScreen *	screen;
 
-    XfceRRMode **	clone_modes;
-
-#ifdef HAVE_RANDR
-    RROutput            primary;
-#endif
+    XfceRROutput        **outputs;
+    XfceRRCrtc          **crtcs;
+    XfceRRMode          **modes;
+    XfceRRMode          **clone_modes;
+    XfceRRScreen         *screen;
+    int                   min_width;
+    int                   max_width;
+    int                   min_height;
+    int                   max_height;
 };
 
 struct XfceRRScreenPrivate
 {
-    GdkScreen *			gdk_screen;
-    GdkWindow *			gdk_root;
-    Display *			xdisplay;
-    Screen *			xscreen;
-    Window			xroot;
-    ScreenInfo *		info;
+    GdkScreen            *gdk_screen;
+    GdkWindow            *gdk_root;
+    Display              *xdisplay;
+    Screen               *xscreen;
+    ScreenInfo           *info;
+    Window			      xroot;
     
-    int				randr_event_base;
-    int				rr_major_version;
-    int				rr_minor_version;
+    int				      randr_event_base;
+    int				      rr_major_version;
+    int				      rr_minor_version;
     
-    Atom                        connector_type_atom;
+    Atom                  connector_type_atom;
 };
 
-struct XfceRROutputInfoPrivate
-{
-    char *		name;
-
-    gboolean		on;
-    int			width;
-    int			height;
-    int			rate;
-    int			x;
-    int			y;
-    XfceRRRotation	rotation;
-
-    gboolean		connected;
-    gchar		vendor[4];
-    guint		product;
-    guint		serial;
-    double		aspect;
-    int			pref_width;
-    int			pref_height;
-    char *		display_name;
-    gboolean            primary;
-};
-
-gboolean _xfce_rr_output_name_is_laptop (const char *name);
-
 #endif
diff --git a/src/xfce-rr.c b/src/xfce-rr.c
index 36f68a2..4cbbe8b 100644
--- a/src/xfce-rr.c
+++ b/src/xfce-rr.c
@@ -1236,22 +1236,6 @@ output_free (XfceRROutput *output)
     g_slice_free (XfceRROutput, output);
 }
 
-gboolean
-_xfce_rr_output_name_is_laptop (const char *name)
-{
-    if (!name)
-        return FALSE;
-
-    if (strstr (name, "lvds") || /* Most drivers use an "LVDS" prefix... */
-        strstr (name, "LVDS") ||
-        strstr (name, "Lvds") ||
-        strstr (name, "LCD")  || /* ... but fglrx uses "LCD" in some versions.  Shoot me now, kthxbye. */
-        strstr (name, "eDP"))    /* eDP is for internal laptop panel connections */
-        return TRUE;
-
-    return FALSE;
-}
-
 /**
  * xfce_rr_output_list_modes:
  * @output: a #XfceRROutput

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


More information about the Xfce4-commits mailing list