LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-19-2011, 12:59 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
"compiz-fusion" compatriot in metacity?


Hi all.

I have a requirement, where in I need to have the behaviour, same as of compiz-fusion's "Zoom Desktop", but in metacity-without-gnome. (I believe "compiz-fusion" works in its own window-manager "compiz")

So, does there exist something, wherein I can get the "Zoom Desktop" feature in metacity, in a NON-gnome environment?


Regards,
Ajay
 
Old 02-26-2012, 10:44 PM   #2
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Got replies from compiz-fusion mailing lists.

Code:
Kristian Lyngstol kristian@bohemians.org
	
12/19/11
		
to Compiz
Greetings,

On Mon, Dec 19, 2011 at 12:41:31PM +0530, Ajay Garg wrote:
> Is there a way, that compiz-fusion ("Zoom Desktop" feature in
> particular), can be made to work in metacity, in a NON-gnome
> environment?

Compiz is not bound to Gnome, so yes, it's possible to use Compiz
without Gnome.

Metacity, however, is an other window manager entirely. Since both
Compiz and Metacity are window manager, you can not run both at the same
time.

> My major concerns are :
>
> a. Is the "compiz-fusion" code, inherently specific to the "compiz"
> window-manager, that "compiz-fusion" ships with?

Compiz Fusion was just a name for various plugins specific to Compiz.
The name is now defunct.

The code is pretty glued in with the logic of Compiz.

> b. Is the "compiz-fusion" code, inherently linked to "gnome"?

No.

Compiz was specifically made to be DE-agnostic. Hench the separation of
window decorations and window management (there are GTK and KDE-based
window decorators for Compiz, and others can be written).

There are some plugins that will be affected by DE, but mostly for
obvious reasons (like "GNOME Support"-plugins).

> I will be grateful to a reply, as it will get me started. More
> importantly, if it indeed is possible to kind-of "port"
> "compiz-fusion" to metacity-without-gnome, there will an overshoot of
> confidence in me. As I have said, coding (in any language) is not a
> problem for me.

If what you are most interested in is the enhanced zoom, I do believe
large parts of that plugin can be reused, assuming you use the original
C-version, not the C++ one.

It will not, however, be a matter of just tweaking it. The Compiz of
today is C++ and metacity is not. I am not familiar with the inner
workings of Metacity myself, so I am not able to answer whether or not
it's practical or even sensible to re-use the code.

Nor do I know just how much of Metacity is composite-aware or
OpenGL-aware.

Frankly, I don't really see the point in building on metacity for this
purpose. Compiz is quite modular and removing bits you don't like is
usually a matter of disabling plugins. It's often easier to think of
Compiz as a plugin framework to build a WM instead of as a WM in itself.

- Kristian


Code:
On Mon, Dec 19, 2011 at 3:11 PM, Ajay Garg <ajaygargnsit@gmail.com> wrote:
>
> I will be grateful to a reply, as it will get me started. More
> importantly, if it indeed is possible to kind-of "port"
> "compiz-fusion" to metacity-without-gnome, there will an overshoot of
> confidence in me. As I have said, coding (in any language) is not a
> problem for me.

Since the compositor and WM roles aren't strictly dependent on each
other, code-wise, it should be possible to run the compositor
separately to the WM, with some hacks.

Have a look at

http://git.compiz.org/~tuxmarkv/zcomp/

(That is very out of date, but the recent commits should show the idea).

Basically what is happening is that the compositor doesn't register
for SubstructureRedirectMask, so compiz is not permitted to intercept
configuration and mapping of windows. I believe that it also prevents
compiz from reparenting windows and as such, it also prevents compiz
from making and passive key or button grabs, since the ICCCM says that
only clients that own windows are allowed to make such grabs.

Keep in mind though, that a lot of the effects require window-manager
functionality in order to work correctly. Namely, the workspaces
switchers. Since those plugins will attempt to move windows around as
a result of their effects (eg, because of the way viewports are
implemented), it depends on the presiding window manager as to whether
or not that kind of interaction will be allowed, since it will
intercept all ConfigureWindow requests on the client windows.

You'll likely require some kind of abstraction service between the two
in order to handle the lack of privileges the compositor has.

All the best,

Sam
 
Old 02-28-2012, 06:13 PM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hello. Are you happy with what you got? if so mark as solved.
If not, then let me get this clear. You are using a different desktop environment to gnome, such as xfce. As you've already established from your reply on the mailing list, metacity and compiz are two separate window managers that can work with a desktop environment, but not more than one window manager at a time. Are you using compiz or Metacity? What you desire in the end, is the feature, 'Zoome Desktop' to work with your environment?
 
  


Reply



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
[SOLVED] compiz fusion " cpu frequency scaling unsupported" mad11 Linux - Newbie 0 03-19-2010 07:10 AM
what is dis "Couldn't find package compiz-fusion" amritpalpathak Linux - Software 2 03-01-2010 02:48 AM
How to solve "Couldn't find package compiz-fusion" amritpalpathak Linux - Software 1 02-28-2010 03:52 AM
Metacity - is there a way to enable "active borders"? UgoBoss Linux - Desktop 2 08-03-2007 07:50 AM
VNC - "gnome-session" breaks metacity MikeOfAustin Linux - Software 1 06-06-2007 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration