From f23c9ac9091266240c6da4a79e1017ef301f5abd Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Thu, 5 May 2011 20:05:15 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@66596 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfxvideo/draw.c | 18 ++++++++---------- plugins/peopsxgl/gpu.c | 15 ++++++++------- 2 files changed, 16 insertions(+), 17 deletions(-) (limited to 'plugins') diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c index 26281753..dce8e945 100644 --- a/plugins/dfxvideo/draw.c +++ b/plugins/dfxvideo/draw.c @@ -1142,7 +1142,7 @@ if (!myvisual) } // pffff... much work for a simple blank cursor... oh, well... - if(iWindowMode) cursor=XCreateFontCursor(display,XC_trek); + if(iWindowMode) cursor=XCreateFontCursor(display,XC_left_ptr); else { Pixmap p1,p2; @@ -1192,7 +1192,12 @@ if (!myvisual) winattr.override_redirect=False; winattr.save_under=False; - winattr.event_mask=0; + winattr.event_mask=ExposureMask | + VisibilityChangeMask | + FocusChangeMask | + KeyPressMask | KeyReleaseMask | + ButtonPressMask | ButtonReleaseMask | + PointerMotionMask; winattr.do_not_propagate_mask=0; winattr.colormap=colormap; winattr.cursor=None; @@ -1203,7 +1208,7 @@ if (!myvisual) InputOutput,myvisual->visual, CWBorderPixel | CWBackPixel | CWEventMask | CWDontPropagate | - CWColormap | CWCursor, + CWColormap | CWCursor | CWEventMask, &winattr); if(!window) @@ -1241,13 +1246,6 @@ if (!myvisual) PropModeReplace,(unsigned char *)&mwmhints,4); } - // key stuff - XSelectInput(display, - window, - FocusChangeMask | ExposureMask | - KeyPressMask | KeyReleaseMask - ); - XMapRaised(display,window); XClearWindow(display,window); XWindowEvent(display,window,ExposureMask,&event); diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index f379372b..04710bcd 100644 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -854,7 +854,7 @@ void sysdep_create_display(void) // create display } // pffff... much work for a simple blank cursor... oh, well... - if(!bFullScreen) cursor=XCreateFontCursor(display,XC_trek); + if(!bFullScreen) cursor=XCreateFontCursor(display,XC_left_ptr); else { Pixmap p1,p2;XImage * img; @@ -902,7 +902,12 @@ void sysdep_create_display(void) // create display winattr.backing_store=NotUseful; winattr.override_redirect=False; winattr.save_under=False; - winattr.event_mask=0; + winattr.event_mask=ExposureMask | + VisibilityChangeMask | + FocusChangeMask | + KeyPressMask | KeyReleaseMask | + ButtonPressMask | ButtonReleaseMask | + PointerMotionMask; winattr.do_not_propagate_mask=0; winattr.colormap=colormap; winattr.cursor=None; @@ -914,7 +919,7 @@ void sysdep_create_display(void) // create display InputOutput,myvisual->visual, CWBorderPixel | CWBackPixel | CWEventMask | CWDontPropagate | - CWColormap | CWCursor, + CWColormap | CWCursor | CWEventMask, &winattr); if(!window) // no window? @@ -954,10 +959,6 @@ void sysdep_create_display(void) // create display PropModeReplace,(unsigned char *)&mwmhints,4); } - XSelectInput(display,window, // input setup - FocusChangeMask | ExposureMask | - KeyPressMask | KeyReleaseMask); - XMapRaised(display,window); XClearWindow(display,window); XWindowEvent(display,window,ExposureMask,&event); -- cgit v1.2.3