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
efc17535
Commit
efc17535
authored
Nov 12, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the Desktop=XXXxYYY setting in the [x11drv] section of the
config file.
parent
5394ab83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
x11drv_main.c
dlls/x11drv/x11drv_main.c
+14
-3
wine.ini
wine.ini
+2
-0
No files found.
dlls/x11drv/x11drv_main.c
View file @
efc17535
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <fcntl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/time.h>
#include <unistd.h>
#include <unistd.h>
#include <X11/cursorfont.h>
#include <X11/cursorfont.h>
...
@@ -113,16 +114,26 @@ static void setup_options(void)
...
@@ -113,16 +114,26 @@ static void setup_options(void)
RegSetValueExA
(
hkey
,
"display"
,
0
,
REG_SZ
,
Options
.
display
,
strlen
(
Options
.
display
)
+
1
);
RegSetValueExA
(
hkey
,
"display"
,
0
,
REG_SZ
,
Options
.
display
,
strlen
(
Options
.
display
)
+
1
);
}
}
/* --managed option */
/* check and set --managed and --desktop options in wine config file
* if it was not set on command line */
if
(
!
Options
.
managed
)
if
(
(
!
Options
.
managed
)
&&
(
Options
.
desktopGeometry
==
NULL
)
)
{
{
count
=
sizeof
(
buffer
);
count
=
sizeof
(
buffer
);
if
(
!
RegQueryValueExA
(
hkey
,
"managed"
,
0
,
&
type
,
buffer
,
&
count
))
if
(
!
RegQueryValueExA
(
hkey
,
"managed"
,
0
,
&
type
,
buffer
,
&
count
))
Options
.
managed
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
Options
.
managed
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
count
=
sizeof
(
buffer
);
if
(
!
RegQueryValueExA
(
hkey
,
"Desktop"
,
0
,
&
type
,
buffer
,
&
count
))
Options
.
desktopGeometry
=
strdup
(
buffer
);
}
}
else
RegSetValueExA
(
hkey
,
"managed"
,
0
,
REG_SZ
,
"y"
,
2
);
if
(
Options
.
managed
)
RegSetValueExA
(
hkey
,
"managed"
,
0
,
REG_SZ
,
"y"
,
2
);
if
(
Options
.
desktopGeometry
)
RegSetValueExA
(
hkey
,
"desktop"
,
0
,
REG_SZ
,
Options
.
desktopGeometry
,
strlen
(
Options
.
desktopGeometry
)
+
1
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
}
}
...
...
wine.ini
View file @
efc17535
...
@@ -106,6 +106,8 @@ PerfectGraphics = N
...
@@ -106,6 +106,8 @@ PerfectGraphics = N
;;Display = :0.0
;;Display = :0.0
; Allow the window manager to manage created windows
; Allow the window manager to manage created windows
Managed
=
N
Managed
=
N
; Use a desktop window of 640x480 for Wine
;Desktop = 640x480
; Use XFree86 DGA extension if present
; Use XFree86 DGA extension if present
UseDGA
=
Y
UseDGA
=
Y
; Use XShm extension if present
; Use XShm extension if present
...
...
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