Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-screensaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apps
xfce4-screensaver
Commits
d7fe409d
Commit
d7fe409d
authored
5 years ago
by
Sean Davis
Browse files
Options
Downloads
Patches
Plain Diff
Drop unused xfce-rr.*
parent
b465d6dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/Makefile.am
+0
-3
0 additions, 3 deletions
src/Makefile.am
src/xfce-rr-private.h
+0
-69
0 additions, 69 deletions
src/xfce-rr-private.h
src/xfce-rr.c
+0
-1492
0 additions, 1492 deletions
src/xfce-rr.c
src/xfce-rr.h
+0
-109
0 additions, 109 deletions
src/xfce-rr.h
with
0 additions
and
1673 deletions
src/Makefile.am
+
0
−
3
View file @
d7fe409d
...
...
@@ -196,9 +196,6 @@ xfce4_screensaver_SOURCES = \
subprocs.h
\
gs-grab-x11.c
\
gs-grab.h
\
xfce-rr.c
\
xfce-rr.h
\
xfce-rr-private.h
\
xfce-bg.c
\
xfce-bg.h
\
xfce-desktop-utils.c
\
...
...
This diff is collapsed.
Click to expand it.
src/xfce-rr-private.h
deleted
100644 → 0
+
0
−
69
View file @
b465d6dc
/* xfce-rr-private.h
*
* Copyright 2007, 2008, Red Hat, Inc.
* Copyright 2018 Sean Davis <bluesabre@xfce.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* Author: Soren Sandmann <sandmann@redhat.com>
*/
#ifndef SRC_XFCE_RR_PRIVATE_H_
#define SRC_XFCE_RR_PRIVATE_H_
#include
<X11/Xlib.h>
#ifdef HAVE_RANDR
#include
<X11/extensions/Xrandr.h>
#endif
typedef
struct
ScreenInfo
ScreenInfo
;
struct
ScreenInfo
{
#ifdef HAVE_RANDR
XRRScreenResources
*
resources
;
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
;
ScreenInfo
*
info
;
Window
xroot
;
int
randr_event_base
;
int
rr_major_version
;
int
rr_minor_version
;
Atom
connector_type_atom
;
};
#endif
/* SRC_XFCE_RR_PRIVATE_H_ */
This diff is collapsed.
Click to expand it.
src/xfce-rr.c
deleted
100644 → 0
+
0
−
1492
View file @
b465d6dc
This diff is collapsed.
Click to expand it.
src/xfce-rr.h
deleted
100644 → 0
+
0
−
109
View file @
b465d6dc
/* xfce-rr.h
*
* Copyright 2007, 2008, Red Hat, Inc.
* Copyright 2018 Sean Davis <bluesabre@xfce.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* Author: Soren Sandmann <sandmann@redhat.com>
*/
#ifndef SRC_XFCE_RR_H_
#define SRC_XFCE_RR_H_
#include
<glib.h>
#include
<gdk/gdk.h>
typedef
struct
XfceRRScreenPrivate
XfceRRScreenPrivate
;
typedef
struct
XfceRROutput
XfceRROutput
;
typedef
struct
XfceRRCrtc
XfceRRCrtc
;
typedef
struct
XfceRRMode
XfceRRMode
;
typedef
struct
{
GObject
parent
;
XfceRRScreenPrivate
*
priv
;
}
XfceRRScreen
;
typedef
struct
{
GObjectClass
parent_class
;
void
(
*
changed
)
(
void
);
}
XfceRRScreenClass
;
typedef
enum
{
XFCE_RR_ROTATION_0
=
(
1
<<
0
),
XFCE_RR_ROTATION_90
=
(
1
<<
1
),
XFCE_RR_ROTATION_180
=
(
1
<<
2
),
XFCE_RR_ROTATION_270
=
(
1
<<
3
),
XFCE_RR_REFLECT_X
=
(
1
<<
4
),
XFCE_RR_REFLECT_Y
=
(
1
<<
5
)
}
XfceRRRotation
;
/* Error codes */
#define XFCE_RR_ERROR (xfce_rr_error_quark ())
GQuark
xfce_rr_error_quark
(
void
);
typedef
enum
{
XFCE_RR_ERROR_UNKNOWN
,
/* generic "fail" */
XFCE_RR_ERROR_NO_RANDR_EXTENSION
,
/* RANDR extension is not present */
XFCE_RR_ERROR_RANDR_ERROR
,
/* generic/undescribed error from the underlying XRR API */
XFCE_RR_ERROR_BOUNDS_ERROR
,
/* requested bounds of a CRTC are outside the maximum size */
XFCE_RR_ERROR_CRTC_ASSIGNMENT
,
/* could not assign CRTCs to outputs */
XFCE_RR_ERROR_NO_MATCHING_CONFIG
,
/* none of the saved configurations matched the current configuration */
}
XfceRRError
;
#define XFCE_RR_CONNECTOR_TYPE_PANEL "Panel"
/* This is a laptop's built-in LCD */
#define XFCE_TYPE_RR_SCREEN (xfce_rr_screen_get_type())
#define XFCE_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_RR_SCREEN, XfceRRScreen))
#define XFCE_IS_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_RR_SCREEN))
#define XFCE_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_RR_SCREEN, XfceRRScreenClass))
#define XFCE_IS_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_RR_SCREEN))
#define XFCE_RR_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_RR_SCREEN, XfceRRScreenClass))
#define XFCE_TYPE_RR_OUTPUT (xfce_rr_output_get_type())
#define XFCE_TYPE_RR_CRTC (xfce_rr_crtc_get_type())
#define XFCE_TYPE_RR_MODE (xfce_rr_mode_get_type())
GType
xfce_rr_screen_get_type
(
void
);
GType
xfce_rr_output_get_type
(
void
);
GType
xfce_rr_crtc_get_type
(
void
);
GType
xfce_rr_mode_get_type
(
void
);
/* XfceRRScreen */
XfceRRScreen
*
xfce_rr_screen_new
(
GdkScreen
*
screen
,
GError
**
error
);
XfceRRCrtc
**
xfce_rr_screen_list_crtcs
(
XfceRRScreen
*
screen
);
gboolean
xfce_rr_screen_refresh
(
XfceRRScreen
*
screen
,
GError
**
error
);
/* XfceRRCrtc */
XfceRRMode
*
xfce_rr_crtc_get_current_mode
(
XfceRRCrtc
*
crtc
);
gboolean
xfce_rr_crtc_get_gamma
(
XfceRRCrtc
*
crtc
,
int
*
size
,
unsigned
short
**
red
,
unsigned
short
**
green
,
unsigned
short
**
blue
);
void
xfce_rr_crtc_set_gamma
(
XfceRRCrtc
*
crtc
,
int
size
,
unsigned
short
*
red
,
unsigned
short
*
green
,
unsigned
short
*
blue
);
#endif
/* SRC_XFCE_RR_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment