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
ac387bbe
Commit
ac387bbe
authored
Oct 05, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Make all windows moveable by default.
parent
a0db724a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
window.c
dlls/winex11.drv/window.c
+2
-4
winpos.c
dlls/winex11.drv/winpos.c
+5
-0
No files found.
dlls/winex11.drv/window.c
View file @
ac387bbe
...
...
@@ -532,13 +532,11 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
}
mwm_hints
.
flags
=
MWM_HINTS_FUNCTIONS
|
MWM_HINTS_DECORATIONS
;
mwm_hints
.
functions
=
0
;
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
mwm_hints
.
functions
|=
MWM_FUNC_MOVE
;
if
(
style
&
WS_THICKFRAME
)
mwm_hints
.
functions
|=
MWM_FUNC_MOVE
|
MWM_FUNC_RESIZE
;
mwm_hints
.
functions
=
MWM_FUNC_MOVE
;
if
(
style
&
WS_THICKFRAME
)
mwm_hints
.
functions
|=
MWM_FUNC_RESIZE
;
if
(
style
&
WS_MINIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MINIMIZE
;
if
(
style
&
WS_MAXIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MAXIMIZE
;
if
(
style
&
WS_SYSMENU
)
mwm_hints
.
functions
|=
MWM_FUNC_CLOSE
;
if
(
ex_style
&
WS_EX_APPWINDOW
)
mwm_hints
.
functions
|=
MWM_FUNC_MOVE
;
mwm_hints
.
decorations
=
0
;
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
{
...
...
dlls/winex11.drv/winpos.c
View file @
ac387bbe
...
...
@@ -1537,6 +1537,8 @@ static void X11DRV_WMMoveResizeWindow( HWND hwnd, int x, int y, int dir )
XEvent
xev
;
Display
*
display
=
thread_display
();
TRACE
(
"hwnd %p, x %d, y %d, dir %d
\n
"
,
hwnd
,
x
,
y
,
dir
);
xev
.
xclient
.
type
=
ClientMessage
;
xev
.
xclient
.
window
=
X11DRV_get_whole_window
(
hwnd
);
xev
.
xclient
.
message_type
=
x11drv_atom
(
_NET_WM_MOVERESIZE
);
...
...
@@ -1594,6 +1596,9 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
return
;
TRACE
(
"hwnd %p (%smanaged), command %04x, hittest %ld, pos %ld,%ld
\n
"
,
hwnd
,
data
->
managed
?
""
:
"NOT "
,
syscommand
,
hittest
,
pt
.
x
,
pt
.
y
);
/* if we are managed then we let the WM do all the work */
if
(
data
->
managed
)
{
...
...
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