[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-15 Thread Marcus Carlson
I've made a kinda hackish patch that lets you move the window to another 
workspace (actually its a viewport). 
Known bugs
 - The window isn't moved to the same position as the last workspace
 - No highlight during drag
 - Probably something more...

Note I'm not a C developer and I really haven't got a clue of the
internals of X, gtk, libwnc, etc. If I get more time during the weekend
I might fix the last things. Otherwise if someone else is willing to fix
the code, feel free ;-)

Also, making diff isn't my cup of tea... Hope it works ;-)

** Attachment added: hackpatch.diff
   http://launchpadlibrarian.net/26782826/hackpatch.diff

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-15 Thread Saïvann Carignan
Marcus Carlson : Wow, thanks for your hack! :-) Thought this patch
probably need some modifications, if it works, it's already a good step.
Can you post your patch on libwnck upstream bug report? That is the
right place to discuss about this since GNOME developers are there.

http://bugzilla.gnome.org/show_bug.cgi?id=505367

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-15 Thread Marcus Carlson
Saïvann Carignan: It surly did need some modifications, in fact I felt
ashame of the patch so I had to do a better one ;-)

So here we go again, the window is now moved to the right position after
the move and won't activate (unless moved to the current
workspace/viewport). Very annoying having awn making jumps ;-) No
highlighting this time either.

Will also post upstream so they can give comments on the code.

** Attachment added: betterpatch.diff
   http://launchpadlibrarian.net/26784875/betterpatch.diff

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-14 Thread Marcus Carlson
Aha. If I understand it correct, a viewport is just a part of a large desktop 
 (vm-spec). 
But how can the pager display get the number of viewports correctly when 
drawing the switcher, I might be blind but I just can't find the code that 
draws ALL (iterating thru the list and calls the appropriate drawing function) 
the viewports/workspaces in pager.c because this one seems to get the correct 
number... or I'm I completely wrong here?

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-14 Thread PaulReiber
NOTE I've not looked at the code in question - though I plan to - this
is just some potential insight into the situation.

Seems to me, if compiz was taking over for the other multi-workspace
code, it might do just what was observed - force the number of
workspaces (from all the other/old codes perspective) to be 1, so it
could render its own new-style workspaces into that one old-style
workspace.

If that's whats going on this starts to make more sense.

Best,
-Paul
http://reiber.org

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-14 Thread dougfractal
I just thought I would make a mock up of a more colourful workspace
switcher.

Since expo already has the functionality that we want, it must be
possible to overlay expo into the workspace switch applet.


** Attachment added: mock up of an Expo type workspace switcher
   http://launchpadlibrarian.net/26729855/expo_as_workspaceswitcher.jpg

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-13 Thread Bug Watch Updater
** Changed in: libwnck
   Status: New = Confirmed

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-13 Thread Marcus Carlson
Hi folks,

I've been doing some investigating and maybe you already know this but
in libwnck in screen.c the function update_workspace_list this always
sets n_space to 1 without printing my warning. From my understanding
this goes all the way to compiz land which hacks the workspaces to
always be set to one.

  n_spaces = 0;
  if (!_wnck_get_cardinal (screen-priv-xroot,
   _wnck_atom_get (_NET_NUMBER_OF_DESKTOPS),
   n_spaces)) {
fprintf(stderr, WARNING WARNING could not get Atom 
_NET_NUMBER_OF_DESKTOPS, setting n_spaces to 1\n);
n_spaces = 1;
  }

Because of this the method wnck_screen_get_workspace_count will always return 1 
and therefore also workspace_at_point will return 1 and the move will then fail 
because we're moving from workspace 1 to workspace 1.
What I can understand this is the same reason bug #150443 fails.

The strange thing is that the drawer somehow can figure out how many
workspaces there really is - why this is so I couldn't find but I
suspect that it checks some gconf values because of the rows thing.

Maybe someone who knows a little bit more about compiz internal can
explain why _NET_NUMBER_OF_DESKTOPS is set to 1?

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-13 Thread Sebastien Bacher
 can explain why _NET_NUMBER_OF_DESKTOPS is set to 1?

I don't know a lot about how compiz work but it's using viewports and
not workspaces and libwnck viewports is suboptimal

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-06 Thread wdesmet
@paul beardsell: that sets the window manager back to metacity instead
of compiz which is why it works again.

The 'about' option on the workspace switcher states:
The Workspace Switcher shows you a small version of your workspaces that lets 
you manage your windows.

It allows you to do no such thing now. IMHO this is a bug and not a
wishlist item.

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-06 Thread dougfractal
IMO the switcher should be like a mini 'expo'   when in compiz mode,  and
classic style when in metacity.

2009/5/6 wdesmet krom...@gmail.com

 @paul beardsell: that sets the window manager back to metacity instead
 of compiz which is why it works again.

 The 'about' option on the workspace switcher states:
 The Workspace Switcher shows you a small version of your workspaces that
 lets you manage your windows.

 It allows you to do no such thing now. IMHO this is a bug and not a
 wishlist item.

 --
 Compiz Gutsy : Can't drag a window to another workspace
 https://bugs.launchpad.net/bugs/150690
 You received this bug notification because you are a direct subscriber
 of a duplicate bug.


-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-05-06 Thread PaulReiber
I'm unaware of expo's drag/drop interface, so I can't comment, other
than to say I found it REALLY REALLY useful to be able to move windows
from workspace to workspace (on or off of the current workspace, for
example) before this bug was introduced.

Indeed, it _was_ a great way to manage my windows.  I'm happy to see
some other people taking interest in this bug; it's a significant
usability problem.

-pbr
http://reiber.org

On Wed, May 6, 2009 at 5:44 AM, dougfractal doug...@gmail.com wrote:
 IMO the switcher should be like a mini 'expo'   when in compiz mode,  and
 classic style when in metacity.

 2009/5/6 wdesmet krom...@gmail.com

 @paul beardsell: that sets the window manager back to metacity instead
 of compiz which is why it works again.

 The 'about' option on the workspace switcher states:
 The Workspace Switcher shows you a small version of your workspaces that
 lets you manage your windows.

 It allows you to do no such thing now. IMHO this is a bug and not a
 wishlist item.

 --
 Compiz Gutsy : Can't drag a window to another workspace
 https://bugs.launchpad.net/bugs/150690
 You received this bug notification because you are a direct subscriber
 of a duplicate bug.


 --
 Compiz Gutsy : Can't drag a window to another workspace
 https://bugs.launchpad.net/bugs/150690
 You received this bug notification because you are a direct subscriber
 of a duplicate bug.



-- 
http://reiber.org

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-04-26 Thread Paul Beardsell
I would like this fixed.  But (works for me) there is an acceptable
workaround:  Disable visual effects.  System - Preferences -
Appearance - Visual effects - None.  Then apps can be dragged
workspace to workspace in the workspace switcher app.

Paul Beardsell

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-04-26 Thread PaulReiber
Interesting... maybe this can help the developers w/ their debugging.
-pbr
http://reiber.org

On Sun, Apr 26, 2009 at 8:51 AM, Paul Beardsell p...@beardsell.com wrote:
 I would like this fixed.  But (works for me) there is an acceptable
 workaround:  Disable visual effects.  System - Preferences -
 Appearance - Visual effects - None.  Then apps can be dragged
 workspace to workspace in the workspace switcher app.

 Paul Beardsell

 --
 Compiz Gutsy : Can't drag a window to another workspace
 https://bugs.launchpad.net/bugs/150690
 You received this bug notification because you are a direct subscriber
 of a duplicate bug.



-- 
http://reiber.org

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-04-22 Thread Chris Roddy
is this supposed to be fixed in 9.04? (the behavior is unchanged)

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-04-22 Thread PaulReiber
I have no idea when this will-be/should-be/was fixed; I'm simply the
guy who reported the problem.  As a post mortem (if they/you/we are
doing those) it'd be great to analyze this bug and see why it has
taken so long to get it fixed (esp. since it _used_ to work!)

I think it works under at least _some_ conditions now... happy to do
some testing to verify; I'll follow up with another email after I do
that.

Regards,
-pbr

On Wed, Apr 22, 2009 at 1:54 PM, Chris Roddy c...@mdc2.org wrote:
 is this supposed to be fixed in 9.04? (the behavior is unchanged)

 --
 Compiz Gutsy : Can't drag a window to another workspace
 https://bugs.launchpad.net/bugs/150690
 You received this bug notification because you are a direct subscriber
 of a duplicate bug.



-- 
http://reiber.org

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 150690] Re: Compiz Gutsy : Can't drag a window to another workspace

2009-04-06 Thread Laurent Bonnaud
** Summary changed:

- Compiz Gutsy : Can't drag a windows to another workspace
+ Compiz Gutsy : Can't drag a window to another workspace

-- 
Compiz Gutsy : Can't drag a window to another workspace
https://bugs.launchpad.net/bugs/150690
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs