summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-05-05 20:05:15 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-05-05 20:05:15 +0000
commitf23c9ac9091266240c6da4a79e1017ef301f5abd (patch)
tree3152ee089fed79d988ffc7f4bc4372f8e056af4d /plugins/dfxvideo
parentd1c9470b12b351443f14ee1cb5620bfffc6dfb0a (diff)
downloadpcsxr-f23c9ac9091266240c6da4a79e1017ef301f5abd.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@66596 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfxvideo')
-rw-r--r--plugins/dfxvideo/draw.c18
1 files changed, 8 insertions, 10 deletions
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);