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
6ba06fa7
Commit
6ba06fa7
authored
Apr 23, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make sure that the window gravity is always set.
parent
855308fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
window.c
dlls/winex11.drv/window.c
+5
-2
No files found.
dlls/winex11.drv/window.c
View file @
6ba06fa7
...
...
@@ -222,6 +222,7 @@ static int get_window_attributes( Display *display, struct x11drv_win_data *data
attr
->
save_under
=
((
GetClassLongW
(
data
->
hwnd
,
GCL_STYLE
)
&
CS_SAVEBITS
)
!=
0
);
attr
->
cursor
=
x11drv_thread_data
()
->
cursor
;
attr
->
bit_gravity
=
NorthWestGravity
;
attr
->
win_gravity
=
StaticGravity
;
attr
->
backing_store
=
NotUseful
;
attr
->
event_mask
=
(
ExposureMask
|
PointerMotionMask
|
ButtonPressMask
|
ButtonReleaseMask
|
EnterWindowMask
|
...
...
@@ -725,15 +726,17 @@ static void set_size_hints( Display *display, struct x11drv_win_data *data, DWOR
if
(
!
(
size_hints
=
XAllocSizeHints
()))
return
;
size_hints
->
win_gravity
=
StaticGravity
;
size_hints
->
flags
|=
PWinGravity
;
/* don't update size hints if window is not in normal state */
if
(
!
(
style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
)))
{
if
(
data
->
hwnd
!=
GetDesktopWindow
())
/* don't force position of desktop */
{
size_hints
->
win_gravity
=
StaticGravity
;
size_hints
->
x
=
data
->
whole_rect
.
left
;
size_hints
->
y
=
data
->
whole_rect
.
top
;
size_hints
->
flags
|=
P
WinGravity
|
P
Position
;
size_hints
->
flags
|=
PPosition
;
}
if
(
!
is_window_resizable
(
data
,
style
))
...
...
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