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
312303ac
Commit
312303ac
authored
Feb 12, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- move TSXGrabServer after a possible return FALSE;
- move misplaced comment - optimize TSXGrabServer use
parent
2b560c75
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
palette.c
graphics/x11drv/palette.c
+4
-4
nonclient.c
windows/nonclient.c
+4
-6
wnd.c
windows/x11drv/wnd.c
+1
-0
No files found.
graphics/x11drv/palette.c
View file @
312303ac
...
...
@@ -394,10 +394,6 @@ static BOOL X11DRV_PALETTE_BuildSharedMap(void)
TRACE
(
"Dynamic colormap...
\n
"
);
/* comment this out if you want to debug palette init */
TSXGrabServer
(
display
);
/* let's become the first client that actually follows
* X guidelines and does binary search...
*/
...
...
@@ -406,6 +402,10 @@ static BOOL X11DRV_PALETTE_BuildSharedMap(void)
WARN
(
"Out of memory while building system palette.
\n
"
);
return
FALSE
;
}
/* comment this out if you want to debug palette init */
TSXGrabServer
(
display
);
while
(
c_max
-
c_min
>
0
)
{
c_val
=
(
c_max
+
c_min
)
/
2
+
(
c_max
+
c_min
)
%
2
;
...
...
windows/nonclient.c
View file @
312303ac
...
...
@@ -88,7 +88,7 @@ static const BYTE lpGrayMask[] = { 0xAA, 0xA0,
* WIN_WindowNeedsWMBorder
*
* This method defines the rules for a window to have a WM border,
* caption... It is used for consitency purposes.
* caption... It is used for consi
s
tency purposes.
*/
BOOL
WIN_WindowNeedsWMBorder
(
DWORD
style
,
DWORD
exStyle
)
{
...
...
@@ -2107,11 +2107,7 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam )
hdc
=
GetDCEx
(
wndPtr
->
parent
->
hwndSelf
,
0
,
DCX_CACHE
);
}
else
{
/* Grab the server only when moving top-level windows without desktop */
hdc
=
GetDC
(
0
);
}
wndPtr
->
pDriver
->
pPreSizeMove
(
wndPtr
);
if
(
iconic
)
/* create a cursor for dragging */
{
...
...
@@ -2121,6 +2117,8 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam )
if
(
!
hDragCursor
)
iconic
=
FALSE
;
}
wndPtr
->
pDriver
->
pPreSizeMove
(
wndPtr
);
/* invert frame if WIN31_LOOK to indicate mouse click on caption */
if
(
!
iconic
&&
TWEAK_WineLook
==
WIN31_LOOK
)
if
(
!
DragFullWindows
)
...
...
@@ -2695,7 +2693,7 @@ LONG NC_HandleSysCommand( HWND hwnd, WPARAM wParam, POINT pt )
TRACE
(
"Handling WM_SYSCOMMAND %x %ld,%ld
\n
"
,
wParam
,
pt
.
x
,
pt
.
y
);
if
(
wndPtr
->
dwStyle
&
WS_CHILD
&&
uCommand
!=
SC_KEYMENU
)
if
(
(
wndPtr
->
dwStyle
&
WS_CHILD
)
&&
(
uCommand
!=
SC_KEYMENU
)
)
ScreenToClient
(
wndPtr
->
parent
->
hwndSelf
,
&
pt
);
switch
(
uCommand
)
...
...
windows/x11drv/wnd.c
View file @
312303ac
...
...
@@ -852,6 +852,7 @@ void X11DRV_WND_SetFocus(WND *wndPtr)
*/
void
X11DRV_WND_PreSizeMove
(
WND
*
wndPtr
)
{
/* Grab the server only when moving top-level windows without desktop */
if
(
!
(
wndPtr
->
dwStyle
&
WS_CHILD
)
&&
(
X11DRV_GetXRootWindow
()
==
DefaultRootWindow
(
display
)))
TSXGrabServer
(
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