mirror of
https://github.com/elementary/gala.git
synced 2024-10-03 18:27:12 +03:00
Apply blur effect for every tooltip window (experimental)
This commit is contained in:
parent
c2ab2380ea
commit
0237175eb9
@ -58,6 +58,10 @@ namespace Gala
|
||||
() => critical ("Could not acquire name") );
|
||||
}
|
||||
|
||||
public static unowned DBus get_instance () {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private DBus ()
|
||||
{
|
||||
blur_actors = new Gee.HashMap<uint32, BlurActor> ();
|
||||
|
@ -1249,6 +1249,18 @@ namespace Gala
|
||||
default:
|
||||
map_completed (actor);
|
||||
break;
|
||||
|
||||
case WindowType.TOOLTIP:
|
||||
bool hardcode_clip = false;
|
||||
if (hardcode_clip) {
|
||||
var rect = window.get_frame_rect ();
|
||||
DBus.get_instance ().enable_blur_behind ((uint32)window.get_xwindow (), 8, 8, rect.width - 9, rect.height - 9, 255);
|
||||
} else {
|
||||
DBus.get_instance ().enable_blur_behind ((uint32)window.get_xwindow (), 0, 0, 0, 0, 255);
|
||||
}
|
||||
|
||||
map_completed (actor);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user