Closed chrisfls closed 11 years ago
Since I see in another issue(motion blur issue) that Compton has no way to detect window movement, I really don't mind if you guys won't consider including it =D, I's just a feature suggestion.
Firstly, thanks for your suggestions. :-)
As what I've explained in #24 (exactly he was asking for the same thing!) and #87, I'm not aware of a way to detect window move/resize process reliably. What I could spot from compton's viewpoint is, when you move/resize a window, a window manager probably grabs the mouse (and a lot of applications grab mouse as well), a mouse button is pressed (well, you press mouse buttons in quite many other cases, I guess? Not to mention we don't even know which button actually move/resize windows in your WM, or whether you are actually using keyboard shoutcuts to adjust this.), the window position and size get changed (ConfigureNotify
) when you move the mouse (hey, what if you temporarily stop moving the mouse?), some window manager changes _NET_CLIENT_LIST_STACKING
on root window (not reliable at all, this property is about window stacking order), and some window managers focus out the moved window (not all window managers, I guess? And you could indeed use -i
/ inactive-opacity
). So you see, I really have no idea how to detect this. I think the FocusIn
/FocusOut
event they emitted might be usable, but different window managers very possibly emit those events in different ways. My suggestions in #24 are still applicable, though: If your window manager kindly provides hooks when resizing a window, you may adjust the window opacity in the hook; you could use -i
/ inactive-opacity
to simulate the effect if your WM changes input focus in a way that compton recognizes (but as far as I know xfwm4 emits FocusIn
/FocusOut
event with NotifyVirtual
in this case, which means the focus is moving from a child window to its ancestor or vice versa, which isn't what we should keep track of at all).
... the default compositor of XFCE has lot more tearing issues than Compton (at least on my pc ...
In case you haven't noticed, glesik kindly indicated in #7 that there's a patch of xfwm4 that adds VSync: https://bugzilla.xfce.org/show_bug.cgi?id=8898
Humm, I did not see #24 =/, and did not know about that patch XD(will apply some day).
So, if I understand, to make that effect, Compton should control decorations too, right? (like default xfce compositor and compiz does) That's just not the point of this project (as far as I know, this is just a compositor, and not a manager/decorator).
Thanks to write that giant paragraph, really =D. I will stick with Compton for now (since I did not get any issues and it is fast). Closing Issue =D
So, if I understand, to make that effect, Compton should control decorations too, right? (like default xfce compositor and compiz does) That's just not the point of this project (as far as I know, this is just a compositor, and not a manager/decorator).
Hmm, yeah, only the window manager knows when you are actually moving a window. compton is a X compositor designed to cooperate with an arbitrary window manager, yet is not a window manager itself.
But there's one thing probably inaccurate: window manager is not really the same as window decorator. A window manager doesn't have to decorate your windows, although most window managers do come with a decorator. And a real window decorator doesn't do anything else other than painting window titlebars and borders! Compiz, for example, is a standalone window manager that indeed relies on third party window decorators, usually either gtk-window-decorator
or emerald
.
May you make compton to use Emerald window decorator as plugin? Please?
May you make compton to use Emerald window decorator as plugin? Please?
- Emerald is not well-maintained as far as I know.
- I don't quite understand what "use Emerald as a plugin" mean. Could you please explain it?
.3. Why ask this in a closed issue?
I'm using Compton with XFCE, because the default compositor of XFCE has lot more tearing issues than Compton (at least on my pc) and has more shadow configurations, but I see that one of the features that I loved in XFCE (and KDE too) was missing: Reduce(or change) window opacity when moving/resizing the window.
Since I see in another issue(motion blur issue) that Compton has no way to detect window movement, I really don't mind if you guys won't consider including it =D, I's just a feature suggestion.