forked from enlightenment/efl
parent
a790d38235
commit
9760bb03f4
|
@ -1108,6 +1108,10 @@ EAPI int ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned
|
|||
EAPI void ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
|
||||
EAPI int ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb);
|
||||
|
||||
EAPI void ecore_x_e_init(void);
|
||||
EAPI void ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb);
|
||||
|
||||
|
||||
EAPI int ecore_x_xinerama_screen_count_get(void);
|
||||
EAPI int ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h);
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ ecore_x_events.c \
|
|||
ecore_x_icccm.c \
|
||||
ecore_x_netwm.c \
|
||||
ecore_x_mwm.c \
|
||||
ecore_x_e.c \
|
||||
ecore_x_selection.c \
|
||||
ecore_x_window.c \
|
||||
ecore_x_window_prop.c \
|
||||
|
|
|
@ -325,6 +325,9 @@ ecore_x_init(const char *name)
|
|||
/* Set up the _NET_... hints */
|
||||
ecore_x_netwm_init();
|
||||
|
||||
/* old e hints init */
|
||||
ecore_x_e_init();
|
||||
|
||||
/* This is just to be anal about naming conventions */
|
||||
ECORE_X_ATOM_SELECTION_PRIMARY = XA_PRIMARY;
|
||||
ECORE_X_ATOM_SELECTION_SECONDARY = XA_SECONDARY;
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
/*
|
||||
* OLD E hints
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "Ecore.h"
|
||||
#include "ecore_x_private.h"
|
||||
#include "Ecore_X.h"
|
||||
#include "Ecore_X_Atoms.h"
|
||||
|
||||
/*
|
||||
* Convenience macros
|
||||
*/
|
||||
#define _ATOM_GET(name) \
|
||||
XInternAtom(_ecore_x_disp, name, False)
|
||||
|
||||
Ecore_X_Atom ECORE_X_ATOM_E_FRAME_SIZE = 0;
|
||||
|
||||
void
|
||||
ecore_x_e_init(void)
|
||||
{
|
||||
ECORE_X_ATOM_E_FRAME_SIZE = _ATOM_GET("_E_FRAME_SIZE");
|
||||
}
|
||||
|
||||
void
|
||||
ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
|
||||
{
|
||||
int frames[4];
|
||||
|
||||
frames[0] = fl;
|
||||
frames[1] = fr;
|
||||
frames[2] = ft;
|
||||
frames[3] = fb;
|
||||
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_FRAME_SIZE, frames, 4);
|
||||
}
|
Loading…
Reference in New Issue