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
52decb1c
Commit
52decb1c
authored
Sep 29, 2023
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Oct 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Handle xdg_toplevel tiled states.
Tiled states don't place strict constraints on the surface size, but they indicate a strong size preference, so try to respect it.
parent
e1222ac3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
wayland_surface.c
dlls/winewayland.drv/wayland_surface.c
+6
-0
waylanddrv.h
dlls/winewayland.drv/waylanddrv.h
+2
-1
window.c
dlls/winewayland.drv/window.c
+7
-2
No files found.
dlls/winewayland.drv/wayland_surface.c
View file @
52decb1c
...
...
@@ -91,6 +91,12 @@ static void xdg_toplevel_handle_configure(void *data,
case
XDG_TOPLEVEL_STATE_RESIZING
:
config_state
|=
WAYLAND_SURFACE_CONFIG_STATE_RESIZING
;
break
;
case
XDG_TOPLEVEL_STATE_TILED_LEFT
:
case
XDG_TOPLEVEL_STATE_TILED_RIGHT
:
case
XDG_TOPLEVEL_STATE_TILED_TOP
:
case
XDG_TOPLEVEL_STATE_TILED_BOTTOM
:
config_state
|=
WAYLAND_SURFACE_CONFIG_STATE_TILED
;
break
;
default:
break
;
}
...
...
dlls/winewayland.drv/waylanddrv.h
View file @
52decb1c
...
...
@@ -60,7 +60,8 @@ enum wayland_window_message
enum
wayland_surface_config_state
{
WAYLAND_SURFACE_CONFIG_STATE_MAXIMIZED
=
(
1
<<
0
),
WAYLAND_SURFACE_CONFIG_STATE_RESIZING
=
(
1
<<
1
)
WAYLAND_SURFACE_CONFIG_STATE_RESIZING
=
(
1
<<
1
),
WAYLAND_SURFACE_CONFIG_STATE_TILED
=
(
1
<<
2
)
};
struct
wayland_cursor
...
...
dlls/winewayland.drv/window.c
View file @
52decb1c
...
...
@@ -401,8 +401,13 @@ static void wayland_configure_window(HWND hwnd)
}
/* The Wayland maximized state is very strict about surface size, so don't
* let the application override it. */
if
(
state
&
WAYLAND_SURFACE_CONFIG_STATE_MAXIMIZED
)
flags
|=
SWP_NOSENDCHANGING
;
* let the application override it. The tiled state is not as strict,
* but it indicates a strong size preference, so try to respect it. */
if
(
state
&
(
WAYLAND_SURFACE_CONFIG_STATE_MAXIMIZED
|
WAYLAND_SURFACE_CONFIG_STATE_TILED
))
{
flags
|=
SWP_NOSENDCHANGING
;
}
NtUserSetWindowPos
(
hwnd
,
0
,
0
,
0
,
width
,
height
,
flags
);
}
...
...
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