Improvement #41: Enable/disable redirection through D-Bus

- Add "redirected_force" to D-Bus opts_get to forcefully
  redirect/unredirect windows.

- Add D-Bus method "repaint", to, namely, repaint the screen.
This commit is contained in:
Richard Grenville
2013-07-26 12:52:16 +08:00
parent b1e0ef8ecd
commit b46deb5162
4 changed files with 39 additions and 11 deletions

View File

@@ -460,6 +460,8 @@ typedef struct {
/// Whether to unredirect all windows if a full-screen opaque window
/// is detected.
bool unredir_if_possible;
/// Forced redirection setting through D-Bus.
switch_t redirected_force;
/// Whether to enable D-Bus support.
bool dbus;
/// Path to log file.
@@ -647,9 +649,6 @@ typedef struct {
XserverRegion all_damage_last[CGLX_MAX_BUFFER_AGE];
/// Whether all windows are currently redirected.
bool redirected;
/// Whether there's a highest full-screen window, and all windows could
/// be unredirected.
bool unredir_possible;
/// Pre-generated alpha pictures.
Picture *alpha_picts;
/// Whether all reg_ignore of windows should expire in this paint.