Update xwinwrap.c
This commit is contained in:
parent
7a9f910885
commit
aa771f7035
|
@ -47,7 +47,7 @@
|
||||||
* Tech Blog: https://www.itdominator.com/
|
* Tech Blog: https://www.itdominator.com/
|
||||||
*
|
*
|
||||||
* Changelog:
|
* Changelog:
|
||||||
* 22-March-19: 1. Cleaned up code formatting.
|
* 3-March-19: 1. Cleaned up code formatting.
|
||||||
* 2. Removed unused DEBUG_MSG reference.
|
* 2. Removed unused DEBUG_MSG reference.
|
||||||
* 3. Moved functions to a more reasonable order.
|
* 3. Moved functions to a more reasonable order.
|
||||||
* 4. Compile dev library list 32 & 64 bit:
|
* 4. Compile dev library list 32 & 64 bit:
|
||||||
|
@ -95,7 +95,7 @@ static int nChildArgv = 0;
|
||||||
int debug = 0;
|
int debug = 0;
|
||||||
char desktop_window_name[DESKTOP_WINDOW_NAME_MAX_SIZE];
|
char desktop_window_name[DESKTOP_WINDOW_NAME_MAX_SIZE];
|
||||||
|
|
||||||
static int addArguments (char **argv, int n) {
|
static int addArguments(char **argv, int n) {
|
||||||
char **newArgv;
|
char **newArgv;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ static int addArguments (char **argv, int n) {
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setWindowOpacity (Display *dpy, Window win, unsigned int opacity) {
|
static void setWindowOpacity(Display *dpy, Window win, unsigned int opacity) {
|
||||||
CARD32 o;
|
CARD32 o;
|
||||||
o = opacity;
|
o = opacity;
|
||||||
XChangeProperty (dpy, win, XInternAtom (dpy, "_NET_WM_WINDOW_OPACITY", 0),
|
XChangeProperty (dpy, win, XInternAtom (dpy, "_NET_WM_WINDOW_OPACITY", 0),
|
||||||
|
@ -120,7 +120,7 @@ static void setWindowOpacity (Display *dpy, Window win, unsigned int opacity) {
|
||||||
(unsigned char *) &o, 1);
|
(unsigned char *) &o, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Visual * findArgbVisual (Display *dpy, int scr) {
|
static Visual * findArgbVisual(Display *dpy, int scr) {
|
||||||
XVisualInfo *xvi;
|
XVisualInfo *xvi;
|
||||||
XVisualInfo template;
|
XVisualInfo template;
|
||||||
int nvi;
|
int nvi;
|
||||||
|
|
Loading…
Reference in New Issue