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
63eeb236
Commit
63eeb236
authored
Sep 27, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Resize desktop window on WM_DISPLAYCHANGE message.
parent
ba143493
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
20 deletions
+6
-20
desktop.c
dlls/winex11.drv/desktop.c
+0
-6
display.c
dlls/winex11.drv/display.c
+1
-8
window.c
dlls/winex11.drv/window.c
+3
-3
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-2
xrandr.c
dlls/winex11.drv/xrandr.c
+2
-1
No files found.
dlls/winex11.drv/desktop.c
View file @
63eeb236
...
...
@@ -467,12 +467,6 @@ void X11DRV_resize_desktop(void)
width
=
primary_rect
.
right
;
height
=
primary_rect
.
bottom
;
if
(
NtUserGetWindowThread
(
hwnd
,
NULL
)
!=
GetCurrentThreadId
())
{
send_message
(
hwnd
,
WM_X11DRV_RESIZE_DESKTOP
,
0
,
0
);
return
;
}
TRACE
(
"desktop %p change to (%dx%d)
\n
"
,
hwnd
,
width
,
height
);
update_desktop_fullscreen
(
width
,
height
);
NtUserSetWindowPos
(
hwnd
,
0
,
virtual_rect
.
left
,
virtual_rect
.
top
,
...
...
dlls/winex11.drv/display.c
View file @
63eeb236
...
...
@@ -419,7 +419,7 @@ LONG X11DRV_ChangeDisplaySettings( LPDEVMODEW displays, HWND hwnd, DWORD flags,
if
(
ret
==
DISP_CHANGE_SUCCESSFUL
)
ret
=
apply_display_settings
(
displays
,
ids
,
TRUE
);
if
(
ret
==
DISP_CHANGE_SUCCESSFUL
)
X11DRV_DisplayDevices_
Update
(
);
X11DRV_DisplayDevices_
Init
(
TRUE
);
done:
free
(
ids
);
...
...
@@ -558,13 +558,6 @@ void X11DRV_DisplayDevices_RegisterEventHandlers(void)
handler
->
register_event_handlers
();
}
void
X11DRV_DisplayDevices_Update
(
void
)
{
X11DRV_DisplayDevices_Init
(
TRUE
);
X11DRV_resize_desktop
();
}
static
BOOL
force_display_devices_refresh
;
BOOL
X11DRV_UpdateDisplayDevices
(
const
struct
gdi_device_manager
*
device_manager
,
BOOL
force
,
void
*
param
)
...
...
dlls/winex11.drv/window.c
View file @
63eeb236
...
...
@@ -1893,6 +1893,9 @@ LRESULT X11DRV_DesktopWindowProc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
case
WM_WINE_ADD_TAB
:
send_notify_message
(
(
HWND
)
wp
,
WM_X11DRV_ADD_TAB
,
0
,
0
);
break
;
case
WM_DISPLAYCHANGE
:
X11DRV_resize_desktop
();
break
;
}
return
NtUserMessageCall
(
hwnd
,
msg
,
wp
,
lp
,
0
,
NtUserDefWindowProc
,
FALSE
);
}
...
...
@@ -2993,9 +2996,6 @@ LRESULT X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
release_win_data
(
data
);
}
return
0
;
case
WM_X11DRV_RESIZE_DESKTOP
:
X11DRV_resize_desktop
();
return
0
;
case
WM_X11DRV_DESKTOP_RESIZED
:
if
((
data
=
get_win_data
(
hwnd
)))
{
...
...
dlls/winex11.drv/x11drv.h
View file @
63eeb236
...
...
@@ -572,7 +572,6 @@ enum x11drv_window_messages
{
WM_X11DRV_UPDATE_CLIPBOARD
=
0x80001000
,
WM_X11DRV_SET_WIN_REGION
,
WM_X11DRV_RESIZE_DESKTOP
,
WM_X11DRV_DESKTOP_RESIZED
,
WM_X11DRV_SET_CURSOR
,
WM_X11DRV_CLIP_CURSOR_NOTIFY
,
...
...
@@ -805,7 +804,6 @@ extern BOOL get_host_primary_gpu(struct gdi_gpu *gpu) DECLSPEC_HIDDEN;
extern
void
X11DRV_DisplayDevices_SetHandler
(
const
struct
x11drv_display_device_handler
*
handler
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DisplayDevices_Init
(
BOOL
force
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DisplayDevices_RegisterEventHandlers
(
void
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DisplayDevices_Update
(
void
)
DECLSPEC_HIDDEN
;
/* Display device handler used in virtual desktop mode */
extern
struct
x11drv_display_device_handler
desktop_handler
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/xrandr.c
View file @
63eeb236
...
...
@@ -1198,8 +1198,9 @@ static BOOL xrandr14_device_change_handler( HWND hwnd, XEvent *event )
xrandr14_invalidate_current_mode_cache
();
if
(
hwnd
==
NtUserGetDesktopWindow
()
&&
NtUserGetWindowThread
(
hwnd
,
NULL
)
==
GetCurrentThreadId
())
{
X11DRV_DisplayDevices_
Update
(
);
X11DRV_DisplayDevices_
Init
(
TRUE
);
init_registry_display_settings
();
X11DRV_resize_desktop
();
}
return
FALSE
;
}
...
...
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