summaryrefslogtreecommitdiffstats
path: root/dbus.c
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-09-07 18:58:09 +0800
committerRichard Grenville <[email protected]>2014-09-07 18:58:09 +0800
commite3717f4f7bf3a0a0a015337454f1e381a6e0278f (patch)
tree154628c6c6fc92922281573b424f076b1ff784f5 /dbus.c
parent886cdca8a59d0ce17d380560490ea06b9f089aa3 (diff)
downloadtdebase-e3717f4f7bf3a0a0a015337454f1e381a6e0278f.tar.gz
tdebase-e3717f4f7bf3a0a0a015337454f1e381a6e0278f.zip
Misc #204: Add glx_take_screenshot() & others
- Add glx_take_screenshot() for taking a screenshot. With ImageMagick the output data could be viewed in this way: display -size [SCREEN-WIDTH]x[SCREEN-HEIGHT] -depth 8 -flip rgb:[PATH] (#204) - Add D-Bus command `opts_get string:paint_on_overlay_id` to get X Composite overlay window ID. (#204) - Code cleanup.
Diffstat (limited to 'dbus.c')
-rw-r--r--dbus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus.c b/dbus.c
index 8aec9ea82..874f565ca 100644
--- a/dbus.c
+++ b/dbus.c
@@ -901,6 +901,11 @@ cdbus_process_opts_get(session_t *ps, DBusMessage *msg) {
cdbus_m_opts_get_do(fork_after_register, cdbus_reply_bool);
cdbus_m_opts_get_do(detect_rounded_corners, cdbus_reply_bool);
cdbus_m_opts_get_do(paint_on_overlay, cdbus_reply_bool);
+ // paint_on_overlay_id: Get ID of the X composite overlay window
+ if (!strcmp("paint_on_overlay_id", target)) {
+ cdbus_reply_uint32(ps, msg, ps->overlay);
+ return true;
+ }
cdbus_m_opts_get_do(unredir_if_possible, cdbus_reply_bool);
cdbus_m_opts_get_do(unredir_if_possible_delay, cdbus_reply_int32);
cdbus_m_opts_get_do(redirected_force, cdbus_reply_enum);