Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e2db7ef7
Commit
e2db7ef7
authored
Aug 18, 2021
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Aug 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Disable virtual desktop when using macdrv.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d949b66d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+30
-3
No files found.
programs/winecfg/x11drvdlg.c
View file @
e2db7ef7
...
...
@@ -111,17 +111,44 @@ static void update_gui_for_desktop_mode(HWND dialog)
updating_ui
=
FALSE
;
}
static
BOOL
can_enable_desktop
(
void
)
{
char
*
value
;
UINT
guid_atom
;
BOOL
ret
=
FALSE
;
char
key
[
sizeof
(
"System
\\
CurrentControlSet
\\
Control
\\
Video
\\
{}
\\
0000"
)
+
40
];
guid_atom
=
HandleToULong
(
GetPropA
(
GetDesktopWindow
(),
"__wine_display_device_guid"
));
strcpy
(
key
,
"System
\\
CurrentControlSet
\\
Control
\\
Video
\\
{"
);
if
(
!
GlobalGetAtomNameA
(
guid_atom
,
key
+
strlen
(
key
),
40
))
return
ret
;
strcat
(
key
,
"}
\\
0000"
);
if
((
value
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
key
,
"GraphicsDriver"
,
NULL
)))
{
if
(
strcmp
(
value
,
"winemac.drv"
))
ret
=
TRUE
;
HeapFree
(
GetProcessHeap
(),
0
,
value
);
}
return
ret
;
}
static
void
init_dialog
(
HWND
dialog
)
{
char
*
buf
;
BOOL
enable_desktop
;
convert_x11_desktop_key
();
update_gui_for_desktop_mode
(
dialog
);
if
((
enable_desktop
=
can_enable_desktop
()))
update_gui_for_desktop_mode
(
dialog
);
else
disable
(
IDC_ENABLE_DESKTOP
);
updating_ui
=
TRUE
;
SendDlgItemMessageW
(
dialog
,
IDC_DESKTOP_WIDTH
,
EM_LIMITTEXT
,
RES_MAXLEN
,
0
);
SendDlgItemMessageW
(
dialog
,
IDC_DESKTOP_HEIGHT
,
EM_LIMITTEXT
,
RES_MAXLEN
,
0
);
if
(
enable_desktop
)
{
SendDlgItemMessageW
(
dialog
,
IDC_DESKTOP_WIDTH
,
EM_LIMITTEXT
,
RES_MAXLEN
,
0
);
SendDlgItemMessageW
(
dialog
,
IDC_DESKTOP_HEIGHT
,
EM_LIMITTEXT
,
RES_MAXLEN
,
0
);
}
buf
=
get_reg_key
(
config_key
,
keypath
(
"X11 Driver"
),
"GrabFullscreen"
,
"N"
);
if
(
IS_OPTION_TRUE
(
*
buf
))
...
...
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