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
6bb18e24
Commit
6bb18e24
authored
Mar 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Get rid of the using_wine_desktop flag.
parent
90af5a0d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
window.c
dlls/x11drv/window.c
+5
-4
x11drv.h
dlls/x11drv/x11drv.h
+0
-1
x11drv_main.c
dlls/x11drv/x11drv_main.c
+0
-2
xrandr.c
dlls/x11drv/xrandr.c
+1
-1
xvidmode.c
dlls/x11drv/xvidmode.c
+4
-4
No files found.
dlls/x11drv/window.c
View file @
6bb18e24
...
...
@@ -119,9 +119,10 @@ BOOL X11DRV_is_window_rect_mapped( const RECT *rect )
*
* Fill the window attributes structure for an X window.
*/
static
int
get_window_attributes
(
struct
x11drv_win_data
*
data
,
XSetWindowAttributes
*
attr
)
static
int
get_window_attributes
(
Display
*
display
,
struct
x11drv_win_data
*
data
,
XSetWindowAttributes
*
attr
)
{
if
(
!
data
->
managed
&&
!
using_wine_desktop
&&
is_window_managed
(
data
->
hwnd
))
if
(
!
data
->
managed
&&
(
root_window
==
DefaultRootWindow
(
display
))
&&
is_window_managed
(
data
->
hwnd
))
{
data
->
managed
=
TRUE
;
SetPropA
(
data
->
hwnd
,
managed_prop
,
(
HANDLE
)
1
);
...
...
@@ -142,7 +143,7 @@ static int get_window_attributes( struct x11drv_win_data *data, XSetWindowAttrib
void
X11DRV_sync_window_style
(
Display
*
display
,
struct
x11drv_win_data
*
data
)
{
XSetWindowAttributes
attr
;
int
mask
=
get_window_attributes
(
data
,
&
attr
);
int
mask
=
get_window_attributes
(
d
isplay
,
d
ata
,
&
attr
);
wine_tsx11_lock
();
if
(
data
->
whole_window
!=
DefaultRootWindow
(
display
))
...
...
@@ -654,7 +655,7 @@ static Window create_whole_window( Display *display, struct x11drv_win_data *dat
if
(
!
(
cx
=
rect
.
right
-
rect
.
left
))
cx
=
1
;
if
(
!
(
cy
=
rect
.
bottom
-
rect
.
top
))
cy
=
1
;
mask
=
get_window_attributes
(
data
,
&
attr
);
mask
=
get_window_attributes
(
d
isplay
,
d
ata
,
&
attr
);
/* set the attributes that don't change over the lifetime of the window */
attr
.
bit_gravity
=
NorthWestGravity
;
...
...
dlls/x11drv/x11drv.h
View file @
6bb18e24
...
...
@@ -262,7 +262,6 @@ extern int client_side_with_render;
extern
int
client_side_antialias_with_core
;
extern
int
client_side_antialias_with_render
;
extern
int
using_client_side_fonts
;
extern
int
using_wine_desktop
;
extern
void
X11DRV_XRender_Init
(
void
);
extern
void
X11DRV_XRender_Finalize
(
void
);
extern
BOOL
X11DRV_XRender_SelectFont
(
X11DRV_PDEVICE
*
,
HFONT
);
...
...
dlls/x11drv/x11drv_main.c
View file @
6bb18e24
...
...
@@ -82,7 +82,6 @@ int client_side_with_core = 1;
int
client_side_with_render
=
1
;
int
client_side_antialias_with_core
=
1
;
int
client_side_antialias_with_render
=
1
;
int
using_wine_desktop
=
0
;
int
copy_default_colors
=
128
;
int
alloc_system_colors
=
256
;
DWORD
thread_data_tls_index
=
TLS_OUT_OF_INDEXES
;
...
...
@@ -424,7 +423,6 @@ static BOOL process_attach(void)
if
(
desktop_geometry
)
{
root_window
=
X11DRV_create_desktop
(
desktop_vi
,
desktop_geometry
);
using_wine_desktop
=
1
;
}
if
(
desktop_vi
)
XFree
(
desktop_vi
);
...
...
dlls/x11drv/xrandr.c
View file @
6bb18e24
...
...
@@ -254,7 +254,7 @@ void X11DRV_XRandR_Init(void)
if
(
xrandr_major
)
return
;
/* already initialized? */
if
(
!
usexrandr
)
return
;
/* disabled in config */
if
(
using_wine_desktop
)
return
;
/* not compatible with desktop mode */
if
(
root_window
!=
DefaultRootWindow
(
gdi_display
))
return
;
if
(
!
load_xrandr
())
return
;
/* can't load the Xrandr library */
/* see if Xrandr is available */
...
...
dlls/x11drv/xvidmode.c
View file @
6bb18e24
...
...
@@ -172,14 +172,14 @@ void X11DRV_XF86VM_Init(void)
#endif
/* X_XF86VidModeSetGammaRamp */
/* retrieve modes */
if
(
!
using_wine_desktop
)
ok
=
XF86VidModeGetAllModeLines
(
gdi_display
,
DefaultScreen
(
gdi_display
),
&
nmodes
,
&
real_xf86vm_modes
);
if
(
root_window
==
DefaultRootWindow
(
gdi_display
))
ok
=
XF86VidModeGetAllModeLines
(
gdi_display
,
DefaultScreen
(
gdi_display
),
&
nmodes
,
&
real_xf86vm_modes
);
else
ok
=
FALSE
;
/* In desktop mode, do not switch resolution... But still use the Gamma ramp stuff */
}
wine_tsx11_unlock
();
if
(
!
ok
)
return
;
/* In desktop mode, do not switch resolution... But still use the Gamma ramp stuff */
if
(
using_wine_desktop
)
return
;
TRACE
(
"XVidMode modes: count=%d
\n
"
,
nmodes
);
real_xf86vm_mode_count
=
nmodes
;
...
...
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