Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-screensaver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Apps
xfce4-screensaver
Commits
b011935a
Commit
b011935a
authored
Oct 03, 2018
by
Sean Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up xfce-rr-private.h
parent
16b09f8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
68 deletions
+21
-68
src/xfce-rr-private.h
src/xfce-rr-private.h
+21
-52
src/xfce-rr.c
src/xfce-rr.c
+0
-16
No files found.
src/xfce-rr-private.h
View file @
b011935a
...
...
@@ -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
src/xfce-rr.c
View file @
b011935a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment