Skip to content
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

New effect: Magic lamp for closing windows #299

Open
juacq97 opened this issue Feb 5, 2023 · 3 comments
Open

New effect: Magic lamp for closing windows #299

juacq97 opened this issue Feb 5, 2023 · 3 comments
Labels
contributions welcome Most likely, I will not work on this in the next couple of weeks new effect An idea for a new effect

Comments

@juacq97
Copy link

juacq97 commented Feb 5, 2023

The Idea

I'd love the magic lamp effect but for closing windows. On KDE, if no taskbar is present, when the minimize button is pressed, the window is "swallowed" by the mouse cursor instead of the taskbar, this could be added but when the window is closed.

Window Closing vs. Window Opening

For opening windows, the window could appear from the bottom implying that it appears from the (now hidden) dash. If the dash is visible or on another place, maybe the effect can start from the app window or drawer icon.

References

I only found videos for the classic magic lamp effect that send the window to the taskbar https://youtu.be/tipsCGAFbPg

@juacq97 juacq97 added the new effect An idea for a new effect label Feb 5, 2023
@juacq97 juacq97 changed the title Magic lamp for closing windows New effect: Magic lamp for closing windows Feb 5, 2023
@Schneegans
Copy link
Owner

Hi there! This is indeed a great idea. However, it will be tricky implementation-wise. For now, the effects use shaders which "simply" modify the image texture of the window. This means, that the effect is more or less limited to the area of the window (including its shadow). For some effects (like the broken-glass effect), the window is up-scaled before the animation in order to provide a larger "canvas" for drawing the effect.

For the effect you suggest, it could be possible that the mouse pointer is on the opposite side of the screen and thus the window would need to upscaled to fill the entire screen. This is possible, but may result in a mediocre performance. And I have not yet discovered a way to upscale the window on KDE, so this would be a GNOME-only effect.

@Schneegans Schneegans added the contributions welcome Most likely, I will not work on this in the next couple of weeks label Feb 7, 2023
@paulo-roger
Copy link

Came to ask for this as well. for minimizing I've been using this extension: compiz alike magic lamp effect.

I will see if am able to tweak with it a bit maybe to contribute, might take a big while since I still gotta learn my way around messing with gnome (just installed linux for 1 week yet, loving it so far)

@Schneegans
Copy link
Owner

I already started working on this in the feature/magic-lamp branch, but it's not yet in a usable state 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome Most likely, I will not work on this in the next couple of weeks new effect An idea for a new effect
Projects
None yet
Development

No branches or pull requests

3 participants