LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-27-2010, 11:31 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Compiz Window Previews


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.
 
Old 05-27-2010, 12:25 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
If the window is iconified then there is no window to preview.
 
Old 05-27-2010, 02:02 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
I thought that the window still is drawn off-screen when iconified.
 
Old 05-27-2010, 07:10 PM   #4
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
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.

Adam
 
Old 05-27-2010, 07:14 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
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?
 
Old 05-27-2010, 07:18 PM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Quote:
Originally Posted by MTK358 View Post
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).

Adam
 
Old 05-28-2010, 07:29 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by adamk75 View Post
Because doing that is kind of a hack (much like not actually minimizing windows would be a hack).

Adam
It is a bit of a hack, but I think it's far better than nothing.
 
Old 05-28-2010, 07:33 AM   #8
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
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).

Adam
 
Old 05-28-2010, 06:38 PM   #9
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
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.
 
Old 09-10-2010, 03:08 AM   #10
paegus
LQ Newbie
 
Registered: Apr 2004
Location: Edinburgh
Distribution: Ubuntu 10.04
Posts: 8

Rep: Reputation: 0
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?
 
Old 09-10-2010, 07:12 AM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by paegus View Post
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.

And now I'm using Xfwm4.
 
Old 09-11-2010, 10:29 AM   #12
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
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.
 
Old 09-11-2010, 10:45 AM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by Kenny_Strawn View Post
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.
 
Old 09-11-2010, 11:21 AM   #14
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
I know in Windows 7, the thumbnails are still animated when minimized (useful for seeing things like downloads in progress, for example).
 
Old 09-11-2010, 06:22 PM   #15
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 402

Rep: Reputation: 51
Quote:
I know in Windows 7, the thumbnails are still animated when minimized (useful for seeing things like downloads in progress, for example).
Then this must mean windows are just off screen but not minimized, because when a window is really minimized (e.g. in Windows XP), its sizes become 0.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
window decorations go away with compiz sharky Linux Mint 3 08-21-2009 05:00 PM
Live window previews in workspace switcher? crontab Linux - Desktop 2 08-31-2008 07:58 PM
Need Compiz Window Manager jncarlos Suse/Novell 1 03-03-2007 05:04 AM
Compiz Window Mangers SickNick Linux - Desktop 1 02-02-2007 07:03 AM
compiz, window borders??? liaty Suse/Novell 6 06-19-2006 04:52 AM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration