mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
(x11_common.c) Move variables and macros to top
This commit is contained in:
parent
c3de4ae7c3
commit
9ece4db168
@ -26,6 +26,16 @@
|
||||
#include "x11_common.h"
|
||||
#include "../../general.h"
|
||||
|
||||
static Atom XA_NET_WM_STATE;
|
||||
static Atom XA_NET_WM_STATE_FULLSCREEN;
|
||||
static Atom XA_NET_MOVERESIZE_WINDOW;
|
||||
|
||||
#define XA_INIT(x) XA##x = XInternAtom(dpy, #x, False)
|
||||
#define _NET_WM_STATE_ADD 1
|
||||
#define MOVERESIZE_GRAVITY_CENTER 5
|
||||
#define MOVERESIZE_X_SHIFT 8
|
||||
#define MOVERESIZE_Y_SHIFT 9
|
||||
|
||||
static void x11_hide_mouse(Display *dpy, Window win)
|
||||
{
|
||||
static char bm_no_data[] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
@ -57,16 +67,6 @@ void x11_show_mouse(Display *dpy, Window win, bool state)
|
||||
x11_hide_mouse(dpy, win);
|
||||
}
|
||||
|
||||
static Atom XA_NET_WM_STATE;
|
||||
static Atom XA_NET_WM_STATE_FULLSCREEN;
|
||||
static Atom XA_NET_MOVERESIZE_WINDOW;
|
||||
|
||||
#define XA_INIT(x) XA##x = XInternAtom(dpy, #x, False)
|
||||
#define _NET_WM_STATE_ADD 1
|
||||
#define MOVERESIZE_GRAVITY_CENTER 5
|
||||
#define MOVERESIZE_X_SHIFT 8
|
||||
#define MOVERESIZE_Y_SHIFT 9
|
||||
|
||||
void x11_windowed_fullscreen(Display *dpy, Window win)
|
||||
{
|
||||
XEvent xev = {0};
|
||||
|
Loading…
x
Reference in New Issue
Block a user