This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16-epplets.
View the commit online.
commit 59b3428054a3c13fa07f20c010c19649f55d5fd0
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Dec 16 17:08:27 2023 +0100
api: Enable launching epplets into window mode e16
---
api/epplet.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/api/epplet.c b/api/epplet.c
index 5f4eb5d..58aaddd 100644
--- a/api/epplet.c
+++ b/api/epplet.c
@@ -413,6 +413,7 @@ Epplet_Init(const char *name, const char *version, const char *info,
struct utsname ubuf;
MWMHints mwm;
char *msg;
+ const char *str;
#if SET_HINTS_EWM
Atom atom_list[8];
@@ -436,13 +437,14 @@ Epplet_Init(const char *name, const char *version, const char *info,
#endif
#endif
- root = DefaultRootWindow(disp);
+ str = getenv("ENL_WM_ROOT");
+ root = (str) ? strtoul(str, NULL, 0) : DefaultRootWindow(disp);
imlib_context_set_display(disp);
imlib_context_set_visual(DefaultVisual(disp, DefaultScreen(disp)));
imlib_context_set_colormap(DefaultColormap(disp, DefaultScreen(disp)));
- XSelectInput(disp, DefaultRootWindow(disp), PropertyChangeMask);
+ XSelectInput(disp, root, PropertyChangeMask);
/* Find the instance number for this instance and compose the name from it */
Epplet_find_instance(name);
@@ -459,7 +461,7 @@ Epplet_Init(const char *name, const char *version, const char *info,
LeaveWindowMask | KeyPressMask | KeyReleaseMask | ButtonMotionMask |
ExposureMask | FocusChangeMask | PropertyChangeMask |
VisibilityChangeMask;
- mainwin->win = XCreateWindow(disp, DefaultRootWindow(disp), 0, 0, w, h, 0,
+ mainwin->win = XCreateWindow(disp, root, 0, 0, w, h, 0,
CopyFromParent, InputOutput, CopyFromParent,
CWOverrideRedirect | CWSaveUnder |
CWBackingStore | CWColormap | CWBackPixel |
@@ -597,7 +599,7 @@ Epplet_internal_create_window(int w, int h, const char *title, char vertical,
ButtonMotionMask | ExposureMask | FocusChangeMask |
PropertyChangeMask | VisibilityChangeMask;
- ret->win = XCreateWindow(disp, DefaultRootWindow(disp), 0, 0, w, h, 0,
+ ret->win = XCreateWindow(disp, root, 0, 0, w, h, 0,
CopyFromParent, InputOutput, CopyFromParent,
CWOverrideRedirect | CWSaveUnder | CWBackingStore |
CWColormap | CWBackPixel | CWBorderPixel |
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.