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
c6b6935b
Commit
c6b6935b
authored
Jul 04, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Wake up the display on user input.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc14753d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
window.c
dlls/winex11.drv/window.c
+19
-0
No files found.
dlls/winex11.drv/window.c
View file @
c6b6935b
...
...
@@ -1804,6 +1804,22 @@ BOOL CDECL X11DRV_CreateDesktopWindow( HWND hwnd )
}
static
WNDPROC
desktop_orig_wndproc
;
#define WM_WINE_NOTIFY_ACTIVITY WM_USER
static
LRESULT
CALLBACK
desktop_wndproc_wrapper
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
switch
(
msg
)
{
case
WM_WINE_NOTIFY_ACTIVITY
:
XResetScreenSaver
(
gdi_display
);
XFlush
(
gdi_display
);
break
;
}
return
desktop_orig_wndproc
(
hwnd
,
msg
,
wp
,
lp
);
}
/**********************************************************************
* CreateWindow (X11DRV.@)
*/
...
...
@@ -1814,6 +1830,9 @@ BOOL CDECL X11DRV_CreateWindow( HWND hwnd )
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
XSetWindowAttributes
attr
;
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
);
/* create the cursor clipping window */
attr
.
override_redirect
=
TRUE
;
attr
.
event_mask
=
StructureNotifyMask
|
FocusChangeMask
;
...
...
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