diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-18 14:21:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-18 14:21:00 +0200 |
commit | 9c936e1d434becca2396d7c4e4ee2f0655fbb973 (patch) | |
tree | 95d16e773f0025b1b83b93ffbe70843d90a0a116 /src/servers/gamma.c | |
parent | m + do state merge in servers/crtc.c (diff) | |
download | coopgammad-9c936e1d434becca2396d7c4e4ee2f0655fbb973.tar.gz coopgammad-9c936e1d434becca2396d7c4e4ee2f0655fbb973.tar.bz2 coopgammad-9c936e1d434becca2396d7c4e4ee2f0655fbb973.tar.xz |
Move disconnect and reconnect to servers/crtc.c, but keep gamma reapplication in servers/gamma.c
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/gamma.c')
-rw-r--r-- | src/servers/gamma.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/servers/gamma.c b/src/servers/gamma.c index a481095..0330c51 100644 --- a/src/servers/gamma.c +++ b/src/servers/gamma.c @@ -248,35 +248,14 @@ void restore_gamma(void) } - /** - * Disconnect from the site - * - * @return Zero on success, -1 on error + * Reapplu all gamma ramps */ -int disconnect(void) -{ - if (!connected) - return 0; - - connected = 0; - return 0; /* TODO disconnect() */ -} - - -/** - * Reconnect to the site - * - * @return Zero on success, -1 on error - */ -int reconnect(void) +void reapply_gamma(void) { union gamma_ramps plain; size_t i; - if (connected) - return 0; - /* Reapply gamma ramps */ for (i = 0; i < outputs_n; i++) { @@ -290,8 +269,5 @@ int reconnect(void) libgamma_gamma_ramps8_destroy(&(plain.u8)); } } - - connected = 1; - return 0; /* TODO reconnect() */ } |