File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1804,6 +1804,22 @@ BOOL CDECL X11DRV_CreateDesktopWindow( HWND hwnd )
1804
1804
}
1805
1805
1806
1806
1807
+ static WNDPROC desktop_orig_wndproc ;
1808
+
1809
+ #define WM_WINE_NOTIFY_ACTIVITY WM_USER
1810
+
1811
+ static LRESULT CALLBACK desktop_wndproc_wrapper ( HWND hwnd , UINT msg , WPARAM wp , LPARAM lp )
1812
+ {
1813
+ switch (msg )
1814
+ {
1815
+ case WM_WINE_NOTIFY_ACTIVITY :
1816
+ XResetScreenSaver ( gdi_display );
1817
+ XFlush ( gdi_display );
1818
+ break ;
1819
+ }
1820
+ return desktop_orig_wndproc ( hwnd , msg , wp , lp );
1821
+ }
1822
+
1807
1823
/**********************************************************************
1808
1824
* CreateWindow (X11DRV.@)
1809
1825
*/
@@ -1814,6 +1830,9 @@ BOOL CDECL X11DRV_CreateWindow( HWND hwnd )
1814
1830
struct x11drv_thread_data * data = x11drv_init_thread_data ();
1815
1831
XSetWindowAttributes attr ;
1816
1832
1833
+ desktop_orig_wndproc = (WNDPROC )SetWindowLongPtrW ( hwnd , GWLP_WNDPROC ,
1834
+ (LONG_PTR )desktop_wndproc_wrapper );
1835
+
1817
1836
/* create the cursor clipping window */
1818
1837
attr .override_redirect = TRUE;
1819
1838
attr .event_mask = StructureNotifyMask | FocusChangeMask ;
You can’t perform that action at this time.
0 commit comments