diff options
author | Richard Grenville <[email protected]> | 2014-09-07 18:58:09 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2014-09-07 18:58:09 +0800 |
commit | e3717f4f7bf3a0a0a015337454f1e381a6e0278f (patch) | |
tree | 154628c6c6fc92922281573b424f076b1ff784f5 /dbus.c | |
parent | 886cdca8a59d0ce17d380560490ea06b9f089aa3 (diff) | |
download | tdebase-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |