diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-10 08:56:40 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-10 10:17:51 +0900 |
commit | 41534e69c398cdf744944d7a33265986c2f261d1 (patch) | |
tree | d0e822c499fd6b5043df1d32a6bcd6a5d41770b6 /data | |
parent | 937a0d641154970c79ebc0c1a556ed3eaf5a139d (diff) |
default theme - add signals to pointer theme to fix glitch in x
in x11 the mouse pointer is separate to everything else on the screen,
and so when screensaver kicks in and we fade to/from black or we
suspend/resume and do the same... the mouse pointer stays annoyingly
visible and it just lookes like a bug. this allows that to be fixed by
allowing the pointer to be suspended or resumed... :)
@fix
Diffstat (limited to 'data')
-rw-r--r-- | data/elementary/themes/edc/pointer.edc | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/data/elementary/themes/edc/pointer.edc b/data/elementary/themes/edc/pointer.edc index 493e5ea347..3f57e27982 100644 --- a/data/elementary/themes/edc/pointer.edc +++ b/data/elementary/themes/edc/pointer.edc @@ -1,14 +1,29 @@ group { name: "e/pointer/enlightenment/default/color"; images.image: "pointer.png" COMP; images.image: "pointer_glow.png" COMP; + data.item: "can_suspend" "1"; parts { + part { name: "parent"; type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "suspend" 0.0; + inherit: "default" 0.0; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + color: 255 255 255 0; + } + } part { name: "base"; + clip_to: "parent"; description { state: "default" 0.0; image.normal: "pointer.png"; + rel.to: "parent"; } } part { name: "glow"; description { state: "default" 0.0; + rel.to: "base"; image.normal: "pointer_glow.png"; color: 255 255 255 0; } @@ -26,8 +41,7 @@ group { name: "e/pointer/enlightenment/default/color"; fixed: 1 1; visible: 0; rel1.relative: (5/32) (5/32); - rel1.to: "base"; - rel2.to: "base"; + rel.to: "base"; rel2.relative: (5/32) (5/32); rel2.offset: 0 0; } @@ -70,6 +84,24 @@ group { name: "e/pointer/enlightenment/default/color"; target: "pulse"; target: "pulse2"; } + program { + signal: "e,state,mouse,suspend"; source: "e"; + action: STATE_SET "suspend" 0.0; + transition: ACCELERATE 1.0; + target: "parent"; + sequence { + action: SIGNAL_EMIT "e,state,mouse,suspend,done" "e"; + } + } + program { + signal: "e,state,mouse,resume"; source: "e"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 1.0; + target: "parent"; + sequence { + action: SIGNAL_EMIT "e,state,mouse,resume,done" "e"; + } + } } } |