mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
14caba03d4
This is a user daemon utility that reads configuration files in lisp for matching X11 windows and performing actions on them. For example, I have this file: ~/.devilspie/undecorate.ds With this contents: (if (or (is (window_class) "qterminal") (is (window_class) "Xfce4-terminal")) (undecorate) ) With the daemon launched from my xstartup, when a window matching the class "qterminal" or "Xfce4-terminal" is opened, it will remove window manager decorations from it giving me a borderless window without a title bar. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
Author: Andreas Rönnquist <gusnan@gusnan.se>
|
|
Description: Do not use depreceated libwnck function wnck_class_group_get_res_class
|
|
This patch makes the source use the wnck_class_group_get_id function instead
|
|
of the deprecated wnck_class_group_res_class
|
|
--- a/src/actions.c
|
|
+++ b/src/actions.c
|
|
@@ -43,7 +43,7 @@
|
|
g_print(_("Window Title: '%s'; Application Name: '%s'; Class: '%s'; Geometry: %dx%d+%d+%d\n"),
|
|
wnck_window_get_name (c->window),
|
|
wnck_application_get_name (wnck_window_get_application (c->window)),
|
|
- wnck_class_group_get_res_class (wnck_window_get_class_group (c->window)),
|
|
+ wnck_class_group_get_id (wnck_window_get_class_group (c->window)),
|
|
width, height, xoffset, yoffset);
|
|
|
|
return e_sexp_result_new_bool (f, TRUE);
|
|
--- a/src/matchers.c
|
|
+++ b/src/matchers.c
|
|
@@ -71,7 +71,7 @@
|
|
ESExpResult *func_window_class(ESExp *f, int argc, ESExpResult **argv, Context *c) {
|
|
ESExpResult *r;
|
|
r = e_sexp_result_new(f, ESEXP_RES_STRING);
|
|
- r->value.string = g_strdup (wnck_class_group_get_res_class (wnck_window_get_class_group (c->window)));
|
|
+ r->value.string = g_strdup (wnck_class_group_get_id (wnck_window_get_class_group (c->window)));
|
|
if (r->value.string == NULL) r->value.string = g_strdup("");
|
|
return r;
|
|
}
|