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
1afd0df7
Commit
1afd0df7
authored
May 10, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Take into account the cursor show count when setting the initial cursor for a window.
parent
eeda373f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
window.c
dlls/winex11.drv/window.c
+21
-4
No files found.
dlls/winex11.drv/window.c
View file @
1afd0df7
...
...
@@ -425,6 +425,25 @@ static void sync_window_style( Display *display, struct x11drv_win_data *data )
/***********************************************************************
* sync_window_cursor
*/
static
void
sync_window_cursor
(
struct
x11drv_win_data
*
data
)
{
HCURSOR
cursor
;
SERVER_START_REQ
(
set_cursor
)
{
req
->
flags
=
0
;
wine_server_call
(
req
);
cursor
=
reply
->
prev_count
>=
0
?
wine_server_ptr_handle
(
reply
->
prev_handle
)
:
0
;
}
SERVER_END_REQ
;
set_window_cursor
(
data
->
hwnd
,
cursor
);
}
/***********************************************************************
* sync_window_region
*
* Update the X11 window region.
...
...
@@ -1053,7 +1072,6 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data
Atom
dndVersion
=
WINE_XDND_VERSION
;
XClassHint
*
class_hints
;
char
*
process_name
=
get_process_name
();
Cursor
cursor
;
wine_tsx11_lock
();
...
...
@@ -1086,9 +1104,6 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
XdndAware
),
XA_ATOM
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
dndVersion
,
1
);
if
((
cursor
=
get_x11_cursor
(
data
->
cursor
)))
XDefineCursor
(
gdi_display
,
data
->
whole_window
,
cursor
);
data
->
wm_hints
=
XAllocWMHints
();
wine_tsx11_unlock
();
...
...
@@ -1681,6 +1696,8 @@ static Window create_whole_window( Display *display, struct x11drv_win_data *dat
wine_tsx11_lock
();
XFlush
(
display
);
/* make sure the window exists before we start painting to it */
wine_tsx11_unlock
();
sync_window_cursor
(
data
);
done:
if
(
win_rgn
)
DeleteObject
(
win_rgn
);
return
data
->
whole_window
;
...
...
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