Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Compiz has a plugin that previews a window when you put your mouse over its taskbar button. The problem is that it doesn't show up if the window is iconified.
That is incorrect. The X server does not draw iconified or shaded windows. Kwin works around this (as, I believe gnome-shell does) by not minimizing windows. Instead, it keeps them active, removes their ability to grab input, and doesn't draw them. There has been some talk in compiz about doing the same thing. The downside being, of course, that some applications act different when minimized. For example, some media players automatically pause if they are minimized. That's not possible in this case as the window is never actually minimized.
That's kinda sad because it seems like the big advantage of it is to have a preview of a window that's not visible to know you're opening the right one.
Why not at least grab a screenshot of the window before iconification and use it as the preview?
That's kinda sad because it seems like the big advantage of it is to have a preview of a window that's not visible to know you're opening the right one.
Why not at least grab a screenshot of the window before iconification and use it as the preview?
Because doing that is kind of a hack (much like not actually minimizing windows would be a hack).
Well you are more than welcome to contribute the code if you're willing to maintain it :-) Otherwise, you'll have to wait for someone else who is willing (which, actually, may not be too far off).
It may be worth investigating how the Gnome DockbarX applet does it - as I understand it, when iconified, it 'remembers' the last de-iconified preview, and uses that instead.
wouldn't it be simpler to minimize the window normally. then when a preview is requested (by window previews, ring/shift switcher, scale, etc) restore the window somewhere not directly visible and show the preview of that?
wouldn't it be simpler to minimize the window normally. then when a preview is requested (by window previews, ring/shift switcher, scale, etc) restore the window somewhere not directly visible and show the preview of that?
I don't know, maybe it's a good idea. Anyway, I stopped using Compiz a long time ago, then I used KDE4, and it showed a screenshot of the app before it was minimized.
I believe M$ Aero actually records screencasts of the windows, even while they're minimized, to display them as previews. Maybe that's what Compiz should do.
I believe M$ Aero actually records screencasts of the windows, even while they're minimized, to display them as previews. Maybe that's what Compiz should do.
It can't because windows don't redraw when minimized, so there's nothing to make a picture of (unless Windows does it differently than X). I still like my idea (and it turns out that's what KWin uses) of taking a screenshot before minimization and using that as the preview.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.