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
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Gilg
xserver
Commits
08978b76
Commit
08978b76
authored
Jan 19, 2019
by
Roman Gilg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for backwards compatibility
parent
61f2604e
Pipeline
#15567
passed with stages
in 1 minute and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
hw/xwayland/xwayland-output.c
hw/xwayland/xwayland-output.c
+3
-1
hw/xwayland/xwayland.c
hw/xwayland/xwayland.c
+7
-0
hw/xwayland/xwayland.h
hw/xwayland/xwayland.h
+1
-0
No files found.
hw/xwayland/xwayland-output.c
View file @
08978b76
...
...
@@ -287,8 +287,10 @@ output_calc_global_scale( struct xwl_screen *xwl_screen)
struct
xwl_output
*
it
;
int32_t
scale
=
1
;
if
(
!
xwl_screen
->
multidpi
)
return
;
if
(
!
xwl_screen
->
xdg_output_manager
)
//
global
scaling is only possible when logical sizes are available
//
multi dpi
scaling is only possible when logical sizes are available
return
;
xorg_list_for_each_entry
(
it
,
&
xwl_screen
->
output_list
,
link
)
{
...
...
hw/xwayland/xwayland.c
View file @
08978b76
...
...
@@ -91,6 +91,7 @@ ddxUseMsg(void)
ErrorF
(
"-wm fd create X client for wm on given fd
\n
"
);
ErrorF
(
"-listen fd add give fd as a listen socket
\n
"
);
ErrorF
(
"-eglstream use eglstream backend for nvidia GPUs
\n
"
);
ErrorF
(
"-multidpi multi dpi emulation, requires wm support
\n
"
);
}
static
int
wm_fd
=
-
1
;
...
...
@@ -125,6 +126,9 @@ ddxProcessArgument(int argc, char *argv[], int i)
else
if
(
strcmp
(
argv
[
i
],
"-eglstream"
)
==
0
)
{
return
1
;
}
else
if
(
strcmp
(
argv
[
i
],
"-multidpi"
)
==
0
)
{
return
1
;
}
return
0
;
}
...
...
@@ -991,6 +995,9 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
ErrorF
(
"xwayland glamor: this build does not have EGLStream support
\n
"
);
#endif
}
else
if
(
strcmp
(
argv
[
i
],
"-multidpi"
)
==
0
)
{
xwl_screen
->
multidpi
=
1
;
}
}
#ifdef XWL_HAS_GLAMOR
...
...
hw/xwayland/xwayland.h
View file @
08978b76
...
...
@@ -123,6 +123,7 @@ struct xwl_screen {
int
rootless
;
int
glamor
;
int
present
;
int
multidpi
;
CreateScreenResourcesProcPtr
CreateScreenResources
;
CloseScreenProcPtr
CloseScreen
;
...
...
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