summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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);