Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roman Gilg
xserver
Commits
08978b76
Commit
08978b76
authored
Jan 19, 2019
by
Roman Gilg
Browse files
Add option for backwards compatibility
parent
61f2604e
Pipeline
#15567
passed with stages
in 1 minute and 17 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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