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
82c6becb
Commit
82c6becb
authored
Apr 24, 2023
by
Alexandros Frantzis
Committed by
Alexandre Julliard
May 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Update display devices from the desktop window thread.
Use a driver internal window message to dispatch updates to display devices from the desktop window thread.
parent
1a336a25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
1 deletion
+56
-1
Makefile.in
dlls/winewayland.drv/Makefile.in
+1
-0
wayland_output.c
dlls/winewayland.drv/wayland_output.c
+1
-1
waylanddrv.h
dlls/winewayland.drv/waylanddrv.h
+6
-0
waylanddrv_main.c
dlls/winewayland.drv/waylanddrv_main.c
+1
-0
window.c
dlls/winewayland.drv/window.c
+47
-0
No files found.
dlls/winewayland.drv/Makefile.in
View file @
82c6becb
...
...
@@ -10,4 +10,5 @@ SOURCES = \
wayland.c
\
wayland_output.c
\
waylanddrv_main.c
\
window.c
\
xdg-output-unstable-v1.xml
dlls/winewayland.drv/wayland_output.c
View file @
82c6becb
...
...
@@ -119,7 +119,7 @@ static void maybe_init_display_devices(void)
/* We only update the display devices from the desktop process. */
if
(
GetCurrentProcessId
()
!=
desktop_pid
)
return
;
wayland_init_display_devices
(
TRUE
);
NtUserPostMessage
(
desktop_hwnd
,
WM_WAYLAND_INIT_DISPLAY_DEVICES
,
0
,
0
);
}
static
void
wayland_output_mode_free_rb
(
struct
rb_entry
*
entry
,
void
*
ctx
)
...
...
dlls/winewayland.drv/waylanddrv.h
View file @
82c6becb
...
...
@@ -46,6 +46,11 @@ extern struct wayland process_wayland DECLSPEC_HIDDEN;
* Definitions for wayland types
*/
enum
wayland_window_message
{
WM_WAYLAND_INIT_DISPLAY_DEVICES
=
0x80001000
};
struct
wayland
{
BOOL
initialized
;
...
...
@@ -107,5 +112,6 @@ void wayland_output_use_xdg_extension(struct wayland_output *output) DECLSPEC_HI
BOOL
WAYLAND_UpdateDisplayDevices
(
const
struct
gdi_device_manager
*
device_manager
,
BOOL
force
,
void
*
param
)
DECLSPEC_HIDDEN
;
LRESULT
WAYLAND_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_WAYLANDDRV_H */
dlls/winewayland.drv/waylanddrv_main.c
View file @
82c6becb
...
...
@@ -32,6 +32,7 @@
static
const
struct
user_driver_funcs
waylanddrv_funcs
=
{
.
pUpdateDisplayDevices
=
WAYLAND_UpdateDisplayDevices
,
.
pWindowMessage
=
WAYLAND_WindowMessage
};
static
NTSTATUS
waylanddrv_unix_init
(
void
*
arg
)
...
...
dlls/winewayland.drv/window.c
0 → 100644
View file @
82c6becb
/*
* Wayland window handling
*
* Copyright 2020 Alexandros Frantzis for Collabora Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep unix
#endif
#include "config.h"
#include "waylanddrv.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
waylanddrv
);
/**********************************************************************
* WAYLAND_WindowMessage
*/
LRESULT
WAYLAND_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
switch
(
msg
)
{
case
WM_WAYLAND_INIT_DISPLAY_DEVICES
:
wayland_init_display_devices
(
TRUE
);
return
0
;
default:
FIXME
(
"got window msg %x hwnd %p wp %lx lp %lx
\n
"
,
msg
,
hwnd
,
(
long
)
wp
,
lp
);
return
0
;
}
}
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