From 015ec328c85459ab4bc5e5d416fbf333fbf043ae Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 10 Jun 2011 12:19:06 -0500 Subject: [PATCH] user32: Handle SC_SCREENSAVE in DefWindowProc. --- dlls/user32/nonclient.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c index d2bcdcb..fa57720 100644 --- a/dlls/user32/nonclient.c +++ b/dlls/user32/nonclient.c @@ -19,6 +19,7 @@ */ #include "config.h" +#include "wine/port.h" #include @@ -1606,6 +1607,12 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam ) FreeLibrary( hmodule ); } } + else + { + const char *argv[3] = { "xdg-screensaver", "activate", NULL }; + spawnvp( _P_NOWAIT, argv[0], argv ); + } break; case SC_HOTKEY: -- 1.7.1