Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
76eecdb2
Commit
76eecdb2
authored
Sep 13, 2023
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Handle xdg_toplevel close event.
parent
e0a5f356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
wayland_surface.c
dlls/winewayland.drv/wayland_surface.c
+19
-0
No files found.
dlls/winewayland.drv/wayland_surface.c
View file @
76eecdb2
...
...
@@ -65,6 +65,24 @@ static const struct xdg_surface_listener xdg_surface_listener =
xdg_surface_handle_configure
};
static
void
xdg_toplevel_handle_configure
(
void
*
data
,
struct
xdg_toplevel
*
xdg_toplevel
,
int32_t
width
,
int32_t
height
,
struct
wl_array
*
states
)
{
}
static
void
xdg_toplevel_handle_close
(
void
*
data
,
struct
xdg_toplevel
*
xdg_toplevel
)
{
NtUserPostMessage
((
HWND
)
data
,
WM_SYSCOMMAND
,
SC_CLOSE
,
0
);
}
static
const
struct
xdg_toplevel_listener
xdg_toplevel_listener
=
{
xdg_toplevel_handle_configure
,
xdg_toplevel_handle_close
};
/**********************************************************************
* wayland_surface_create
*
...
...
@@ -164,6 +182,7 @@ void wayland_surface_make_toplevel(struct wayland_surface *surface)
surface
->
xdg_toplevel
=
xdg_surface_get_toplevel
(
surface
->
xdg_surface
);
if
(
!
surface
->
xdg_toplevel
)
goto
err
;
xdg_toplevel_add_listener
(
surface
->
xdg_toplevel
,
&
xdg_toplevel_listener
,
surface
->
hwnd
);
wl_surface_commit
(
surface
->
wl_surface
);
wl_display_flush
(
process_wayland
.
wl_display
);
...
...
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