bugfix
[pcsx_rearmed.git] / frontend / plugin_lib.c
index a458f0e..dfa2fae 100644 (file)
@@ -67,7 +67,7 @@ void *pl_fbdev_set_mode(int w, int h, int bpp)
        void *ret;
 
        if (w == pl_fbdev_w && h == pl_fbdev_h && bpp == pl_fbdev_bpp)
-               return 0;
+               return pl_fbdev_buf;
 
        pl_fbdev_w = w;
        pl_fbdev_h = h;
@@ -121,6 +121,11 @@ static void update_input(void)
        if (actions[IN_BINDTYPE_EMU] & PEV_MENU)
                stop = 1;
        keystate = actions[IN_BINDTYPE_PLAYER12];
+
+#ifdef X11
+       extern void x11_update_keys(void);
+       x11_update_keys();
+#endif
 }
 
 /* called on every vsync */