Cleanups
This commit is contained in:
parent
ca3f352ed1
commit
2fa46bcef8
|
@ -117,7 +117,8 @@ void x11_move_window(Display *dpy, Window win, int x, int y,
|
|||
xev.xclient.message_type = XA_NET_MOVERESIZE_WINDOW;
|
||||
xev.xclient.window = win;
|
||||
xev.xclient.format = 32;
|
||||
xev.xclient.data.l[0] = (1 << MOVERESIZE_X_SHIFT) | (1 << MOVERESIZE_Y_SHIFT);
|
||||
xev.xclient.data.l[0] = (1 << MOVERESIZE_X_SHIFT)
|
||||
| (1 << MOVERESIZE_Y_SHIFT);
|
||||
xev.xclient.data.l[1] = x;
|
||||
xev.xclient.data.l[2] = y;
|
||||
|
||||
|
@ -548,7 +549,8 @@ void x11_update_window_title(void *data)
|
|||
|
||||
bool x11_input_ctx_new(bool true_full)
|
||||
{
|
||||
if (!x11_create_input_context(g_x11_dpy, g_x11_win, &g_x11_xim, &g_x11_xic))
|
||||
if (!x11_create_input_context(g_x11_dpy, g_x11_win,
|
||||
&g_x11_xim, &g_x11_xic))
|
||||
return false;
|
||||
|
||||
video_driver_display_type_set(RARCH_DISPLAY_X11);
|
||||
|
@ -583,7 +585,8 @@ void x11_colormap_destroy(void)
|
|||
|
||||
void x11_install_quit_atom(void)
|
||||
{
|
||||
g_x11_quit_atom = XInternAtom(g_x11_dpy, "WM_DELETE_WINDOW", False);
|
||||
g_x11_quit_atom = XInternAtom(g_x11_dpy,
|
||||
"WM_DELETE_WINDOW", False);
|
||||
if (g_x11_quit_atom)
|
||||
XSetWMProtocols(g_x11_dpy, g_x11_win, &g_x11_quit_atom, 1);
|
||||
}
|
||||
|
@ -606,7 +609,8 @@ void x11_save_last_used_monitor(Window win)
|
|||
int x = 0, y = 0;
|
||||
|
||||
XGetWindowAttributes(g_x11_dpy, g_x11_win, &target);
|
||||
XTranslateCoordinates(g_x11_dpy, g_x11_win, DefaultRootWindow(g_x11_dpy),
|
||||
XTranslateCoordinates(g_x11_dpy, g_x11_win,
|
||||
DefaultRootWindow(g_x11_dpy),
|
||||
target.x, target.y, &x, &y, &child);
|
||||
|
||||
g_x11_screen = x11_get_xinerama_monitor(g_x11_dpy, x, y,
|
||||
|
|
|
@ -44,9 +44,12 @@ void x11_save_last_used_monitor(Window win);
|
|||
void x11_show_mouse(Display *dpy, Window win, bool state);
|
||||
void x11_windowed_fullscreen(Display *dpy, Window win);
|
||||
void x11_suspend_screensaver(Window win);
|
||||
bool x11_enter_fullscreen(Display *dpy, unsigned width, unsigned height, XF86VidModeModeInfo *desktop_mode);
|
||||
bool x11_enter_fullscreen(Display *dpy, unsigned width,
|
||||
unsigned height, XF86VidModeModeInfo *desktop_mode);
|
||||
|
||||
void x11_exit_fullscreen(Display *dpy, XF86VidModeModeInfo *desktop_mode);
|
||||
void x11_move_window(Display *dpy, Window win, int x, int y, unsigned width, unsigned height);
|
||||
void x11_move_window(Display *dpy, Window win,
|
||||
int x, int y, unsigned width, unsigned height);
|
||||
|
||||
/* Set icon, class, default stuff. */
|
||||
void x11_set_window_attr(Display *dpy, Window win);
|
||||
|
|
Loading…
Reference in New Issue