-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transparency on move - same way as compiz does, #2183
Comments
I think this should actually be doable quite easily with an ipc script, the only thing is we may want to have a way to get the current alpha for a view so that it can be restored later. |
IPC scripts are good on a desktop or on AC power. So I believe IPC script is a very nice tool to automate some exotic tasks , but routine operations better to move inside the executable. Python is a terrible slow resource eater - and make every single mouse click to trigger several python instances to fire up and eat your CPU , RAM and battery looks like a waste. As I read wayfire is becoming also popular in small one-board pc's like raspberry, and also old or not so powerful laptops. Compiz was not just a fancy feature-rich thing - it also was able to run on very limited hardware consuming less resources than script-based monsters (gnome 3 shell ) Scripts looks like perfect tool when there is a need to pass some data to wayfire from external program of vise versa. |
I think you highly overestimate the cost of such a script ;) at some point I'll add the requests necessary and give you a demo script, you can then check for yourself whether it is too CPU intensive or not. |
Also actually you can very easily do a small C++ plugin which adjusts the alpha, there is no need to add it to the existing plugins :) Recently we added signals for detecting when a plugin is activated or deactivated, so you could listen for these signals and adjust the opacity without patching any of the existing plugins (this is what the IPC script would have done as well) |
For me this feature looks pretty usable - first looks of it, second - easy workaround to look through top window by just initiatiating moving it with mouse ( no need for exytra keyboard modifiers and manual transparency control as alpha plugins does.)
made a patch for it (applies on 0.8 and git). The only point - added initial alpha into object properties to handle the case when the window that is moved already has transparency set - so at the end of move it will restore to initial level. Storing one number seems to be more efficient than doing calclulations and keeping value in plugin itself/
alpha08.patch.gz
The text was updated successfully, but these errors were encountered: