summaryrefslogtreecommitdiff
path: root/plugins
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
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')
-rw-r--r--plugins/dfxvideo/draw.c18
-rw-r--r--plugins/peopsxgl/gpu.c15
2 files changed, 16 insertions, 17 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);
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);