Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
a91e34a8
Commit
a91e34a8
authored
Jul 31, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imakefile: make NXAGENT_RANDR_MODE_PREFIX configurable via macro
parent
3b94b9c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+1
-2
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+5
-5
Utils.h
nx-X11/programs/Xserver/hw/nxagent/Utils.h
+4
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
a91e34a8
...
@@ -207,7 +207,7 @@ INCLUDES = \
...
@@ -207,7 +207,7 @@ INCLUDES = \
# NXAGENT_SHAPE2 New shape code
# NXAGENT_SHAPE2 New shape code
# NXAGENT_FIXKEYS Force the release of pressed key when losing focus
# NXAGENT_FIXKEYS Force the release of pressed key when losing focus
# NXAGENT_CLIPBOARD Enables clipboard cut and paste function between X servers.
# NXAGENT_CLIPBOARD Enables clipboard cut and paste function between X servers.
# NXAGENT_RANDR_MODE_PREFIX
Use prefixed (i.e., nx_<x>x<y>) RandR modes
# NXAGENT_RANDR_MODE_PREFIX
Prefix for RandR modes (i.e., nx_<x>x<y>) (default: nx_)
# NXAGENT_RANDR_XINERAMA_CLIPPING cut off invisible window parts in xinerama mode (you probably do not want this)
# NXAGENT_RANDR_XINERAMA_CLIPPING cut off invisible window parts in xinerama mode (you probably do not want this)
# NXAGENT_TIMESTAMP print duration for some routines
# NXAGENT_TIMESTAMP print duration for some routines
#
#
...
@@ -259,7 +259,6 @@ DEFINES = \
...
@@ -259,7 +259,6 @@ DEFINES = \
-DNXAGENT_WAKEUP=1000 \
-DNXAGENT_WAKEUP=1000 \
-DNXAGENT_ONSTART \
-DNXAGENT_ONSTART \
-DNXAGENT_ARTSD \
-DNXAGENT_ARTSD \
-DNXAGENT_RANDR_MODE_PREFIX \
-UNX_DEBUG_INPUT \
-UNX_DEBUG_INPUT \
-DRANDR_10_INTERFACE=1 \
-DRANDR_10_INTERFACE=1 \
-DRANDR_12_INTERFACE=1 \
-DRANDR_12_INTERFACE=1 \
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
a91e34a8
...
@@ -210,6 +210,10 @@ RegionRec nxagentShadowUpdateRegion;
...
@@ -210,6 +210,10 @@ RegionRec nxagentShadowUpdateRegion;
#define NXAGENT_DEFAULT_DPI 96
#define NXAGENT_DEFAULT_DPI 96
#define NXAGENT_AUTO_DPI -1
#define NXAGENT_AUTO_DPI -1
#ifndef NXAGENT_RANDR_MODE_PREFIX
#define NXAGENT_RANDR_MODE_PREFIX nx_
#endif
extern
Bool
nxagentAutoDPI
;
extern
Bool
nxagentAutoDPI
;
/*
/*
...
@@ -4220,15 +4224,11 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
...
@@ -4220,15 +4224,11 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
memset
(
&
modeInfo
,
'\0'
,
sizeof
(
modeInfo
));
memset
(
&
modeInfo
,
'\0'
,
sizeof
(
modeInfo
));
#ifdef NXAGENT_RANDR_MODE_PREFIX
/* avoid collisions with pre-existing default modes by using a
/* avoid collisions with pre-existing default modes by using a
separate namespace. If we'd simply use XxY we could not
separate namespace. If we'd simply use XxY we could not
distinguish between pre-existing modes which should stay
distinguish between pre-existing modes which should stay
and our own modes that should be removed after use. */
and our own modes that should be removed after use. */
sprintf
(
name
,
"nx_%dx%d"
,
new_w
,
new_h
);
sprintf
(
name
,
"%s%dx%d"
,
QUOTE
(
NXAGENT_RANDR_MODE_PREFIX
),
new_w
,
new_h
);
#else
sprintf
(
name
,
"%dx%d"
,
new_w
,
new_h
);
#endif
modeInfo
.
width
=
new_w
;
modeInfo
.
width
=
new_w
;
modeInfo
.
height
=
new_h
;
modeInfo
.
height
=
new_h
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Utils.h
View file @
a91e34a8
...
@@ -47,4 +47,8 @@ static inline const char * validateString(const char *str) {
...
@@ -47,4 +47,8 @@ static inline const char * validateString(const char *str) {
#define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0)
#define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0)
#define SAFE_free(what) do {free(what); what = NULL;} while (0)
#define SAFE_free(what) do {free(what); what = NULL;} while (0)
/* some helper macros to produce a quoted string from other macros */
#define QUOTEEXP(str) #str
#define QUOTE(str) QUOTEEXP(str)
#endif
/* __Utils_H__ */
#endif
/* __Utils_H__ */
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