From c32f155fb063b384ddf63054629d7f227ce1311d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 2 Aug 2013 11:06:02 +0100 Subject: [PATCH] Add a disabled state to the indicator event rectangle NB: This is so that the indicator mouse events can be disabled, thus not allowing Silly people to turn off their Only single monitor. Signed-off-by: Chris Michael --- data/themes/edc/randr.edc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/data/themes/edc/randr.edc b/data/themes/edc/randr.edc index 0232daa30..5e2a2f53f 100644 --- a/data/themes/edc/randr.edc +++ b/data/themes/edc/randr.edc @@ -426,9 +426,12 @@ group { name: "e/conf/randr/main/frame"; description { state: "default" 0.0; color: 0 0 0 0; max: 15 15; -// max: 21 21; align: 0.0 1.0; } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.event.resize"; type: RECT; description { state: "default" 0.0; @@ -555,6 +558,16 @@ group { name: "e/conf/randr/main/frame"; action: STATE_SET "on" 0.0; target: "primary"; } + program { + signal: "e,state,indicator,enabled"; source: "e"; + action: STATE_SET "default" 0.0; + target: "e.event.indicator"; + } + program { + signal: "e,state,indicator,disabled"; source: "e"; + action: STATE_SET "disabled" 0.0; + target: "e.event.indicator"; + } program { signal: "mouse,in"; source: "e.event.resize"; action: SIGNAL_EMIT "e,action,resize,in" "e";