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
c5a95025
Commit
c5a95025
authored
Jan 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Moved initialization of screen_width/height to xinerama_init to do…
winex11.drv: Moved initialization of screen_width/height to xinerama_init to do it inside the x11 lock.
parent
c19af910
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
13 deletions
+6
-13
desktop.c
dlls/winex11.drv/desktop.c
+1
-3
winpos.c
dlls/winex11.drv/winpos.c
+1
-3
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-4
xinerama.c
dlls/winex11.drv/xinerama.c
+2
-2
No files found.
dlls/winex11.drv/desktop.c
View file @
c5a95025
...
...
@@ -110,9 +110,7 @@ void X11DRV_init_desktop( Window win, unsigned int width, unsigned int height )
root_window
=
win
;
max_width
=
screen_width
;
max_height
=
screen_height
;
screen_width
=
width
;
screen_height
=
height
;
xinerama_init
();
xinerama_init
(
width
,
height
);
/* initialize the available resolutions */
dd_modes
=
X11DRV_Settings_SetHandlers
(
"desktop"
,
...
...
dlls/winex11.drv/winpos.c
View file @
c5a95025
...
...
@@ -884,9 +884,7 @@ void X11DRV_resize_desktop( unsigned int width, unsigned int height )
SetRect
(
&
resize_data
.
old_screen_rect
,
0
,
0
,
screen_width
,
screen_height
);
resize_data
.
old_virtual_rect
=
virtual_screen_rect
;
screen_width
=
width
;
screen_height
=
height
;
xinerama_init
();
xinerama_init
(
width
,
height
);
ClipCursor
(
NULL
);
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
...
...
dlls/winex11.drv/x11drv.h
View file @
c5a95025
...
...
@@ -731,7 +731,7 @@ extern void X11DRV_sync_window_position( Display *display, struct x11drv_win_dat
extern
BOOL
X11DRV_SetWindowPos
(
HWND
hwnd
,
HWND
insert_after
,
const
RECT
*
rectWindow
,
const
RECT
*
rectClient
,
UINT
swp_flags
,
const
RECT
*
validRects
);
extern
void
X11DRV_set_wm_hints
(
Display
*
display
,
struct
x11drv_win_data
*
data
);
extern
void
xinerama_init
(
void
);
extern
void
xinerama_init
(
unsigned
int
width
,
unsigned
int
height
);
extern
void
X11DRV_init_desktop
(
Window
win
,
unsigned
int
width
,
unsigned
int
height
);
extern
void
X11DRV_resize_desktop
(
unsigned
int
width
,
unsigned
int
height
);
...
...
dlls/winex11.drv/x11drv_main.c
View file @
c5a95025
...
...
@@ -528,10 +528,7 @@ static BOOL process_attach(void)
if
(
TRACE_ON
(
synchronous
))
XSynchronize
(
display
,
True
);
screen_width
=
WidthOfScreen
(
screen
);
screen_height
=
HeightOfScreen
(
screen
);
xinerama_init
();
xinerama_init
(
WidthOfScreen
(
screen
),
HeightOfScreen
(
screen
)
);
X11DRV_Settings_Init
();
#ifdef HAVE_LIBXXF86VM
...
...
dlls/winex11.drv/xinerama.c
View file @
c5a95025
...
...
@@ -134,14 +134,14 @@ static inline int query_screens(void)
#endif
/* SONAME_LIBXINERAMA */
void
xinerama_init
(
void
)
void
xinerama_init
(
unsigned
int
width
,
unsigned
int
height
)
{
MONITORINFOEXW
*
primary
;
int
i
;
wine_tsx11_lock
();
SetRect
(
&
virtual_screen_rect
,
0
,
0
,
screen_width
,
screen_
height
);
SetRect
(
&
virtual_screen_rect
,
0
,
0
,
width
,
height
);
if
(
root_window
!=
DefaultRootWindow
(
gdi_display
)
||
!
query_screens
())
{
...
...
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