Home Forums Wiki Doc Install Extras Screenshots IRC Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Request - Handling of twinview/xinerama
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Ideas | Propositions

Subjects Author Language Messages Last message
[Resolved] Request - Handling of twinview/xinerama [Bug #65]
Page : 1 2
ngoonee English 22 Tofe [Read]
24 September 2010 à 18:24

ngoonee, Saturday 17 July 2010 à 12:53 | Quote


Subscription date : 17 July 2010
Messages : 12
Cairo dock version is 2.1.3-9, on Arch Linux, using opengl on nvidia closed-source drivers with compiz in gnome.

Feature request:- I use twinview with a laptop screen (1280x800) and a monitor (1280x1024). The monitor is to the right of the laptop.

-------------------------------
|             |               |
laptop      |               |
screen      |    monitor    |
|             |               |
--------------|               |
  
dead area   |               |
              -----------------


I find the dock to be easiest to used when placed on the bottom of the screen. I'd like the dock to be on the laptop screen (since I use the monitor for my main work), but when you auto-hide it on the bottom, its not very easy to call it up (if my mouse goes into the dead area the dock autohides again).

I suggest either that the 'activation' area can be specified to include pixels outside the screen as well, or that cairo-dock simply take the area outside the screen on which its placed to activate the dock.

If this is too hard, then no problem. Its just something that annoys me (everytime I want the dock I have to aim my mouse at a 5 pixel height bottom of the screen), but not a major bug, its not even cairo-dock's fault.

matttbe, Sunday 18 July 2010 à 00:22 | Quote


Subscription date : 24 January 2009
Messages : 12525
Hello,

Thank you for this feature request!

Can you try the latest beta release (2.2.0-beta) because there are a few changes with these visibility options. You can use Yaourt (have a look at our wiki) in order to compile the latest version with sources code downloaded from BZR.

http://uppix.net/9/6/5/1d71df36edd77fc1d1b2c4ef7265ftt.jpg


In fact, you want to have an 'activation' area like that :
-------------------------------
|             |               |
laptop      |               |
screen      |    monitor    |
|             |               |
---$$$$$$$$$$$|               |
  
dead area   |               |
              -$$$$$-----------
(this activation area is represented with this symbol: $)

ngoonee, Monday 19 July 2010 à 06:36 | Quote


Subscription date : 17 July 2010
Messages : 12
The PKGBUILDs don't work, I could install cairo-dock-bzr based on a --lightweight bzr call (from the posts on the AUR) but could not do the same for plug-ins-bzr, which has like 12 commented lines in the PKGBUILD.

Hope to test this but without plugins a bit hard =)

matttbe, Monday 19 July 2010 à 10:52 | Quote


Subscription date : 24 January 2009
Messages : 12525
Can you give us the content of these two pkgbuilds?

ngoonee, Monday 19 July 2010 à 11:32 | Quote


Subscription date : 17 July 2010
Messages : 12
http://aur.archlinux.org/packages/cairo-dock-bzr/cairo-dock-bzr/PKGBUILD
and the build() function is
if [ ! -d ./${_bzrmod} ]; then
bzr branch ${_bzrtrunk} -q -r ${pkgver}
else
cd ${_bzrmod} && bzr pull -r ${pkgver}
fi

msg "bzr checkout done."

msg "Removing old build directory..."
rm -rf $srcdir/$_bzrmod-build
msg "Creating build directory..."
cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build

cd $srcdir/$_bzrmod-build
msg "Building..."

cmake -DCMAKE_INSTALL_PREFIX=/usr || return 1
make || return 1
make install DESTDIR=$pkgdir || return 1

#mkdir -p $pkgdir/usr/share/applications
#install -Dm644 $srcdir/$_svnmod-build/data/cairo-dock.desktop
$pkgdir/usr/share/applications/cairo-dock.desktop || return 1


http://aur.archlinux.org/packages/cairo-dock-plug-ins-bzr/cairo-dock-plug-ins-bzr/PKGBUILD
and the build() function is
cd $srcdir/

msg "Connecting to the server...."

# if [ ! -d ./${_bzrmod} ]; then
# bzr branch ${_bzrtrunk} -q -r ${pkgver}
# else
# cd ${_bzrmod} && bzr pull -r ${pkgver}
# fi

# msg "bzr checkout done."

#msg "Removing old build directory..."
#rm -rf $srcdir/$_bzrmod-build
#msg "Creating build directory..."
#cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build

msg "Starting make..."
cd $srcdir/$_bzrmod-build

autoreconf -isvf
./configure --prefix=/usr --enable-gnome-integration --enable-xfce-integration --disable-kde-integration \
--disable-alsa-mixer --disable-terminal --disable-powermanager --disable-wifi \
--disable-tomboy --disable-compiz-icon --disable-xgamma --disable-gmenu --disable-mail \
--enable-gio-in-gmenu --disable-weblets --disable-exif --disable-keyboard-indicator \
--disable-dnd2share --disable-musicplayer --disable-rssreader \
--enable-xrandr-in-show-desktop --disable-network-monitor \
--enable-scooby-do --enable-doncky|| return 1
make || return 1
make DESTDIR=$pkgdir install || return 1

fabounet, Monday 19 July 2010 à 14:09 | Quote


Subscription date : 30 November 2007
Messages : 17162
is it normal that your mouse goes out of the screen on the laptop ?
it sounds like a bug in X

matttbe, Monday 19 July 2010 à 14:18 | Quote


Subscription date : 24 January 2009
Messages : 12525
The connexion to the server has been removed and they use autoconf

@ Tofe: can you maintain these packages too? (cairo-dock-bzr & cairo-dock-plug-ins-bzr). This is what I propose for 'cairo-dock-bzr'
#Maintainer: bh <............>
#Contributor: lh <..............>
pkgname=cairo-dock-bzr
pkgver
=9999
pkgrel
=1
pkgdesc
="A light and eye-candy dock to launch your programs"
# It uses Cairo / OpenGL to render graphics (many in correlation
# with Compiz) with full hardware acceleration. It's fully configurable and
# fully customisable and can be used as a taskbar too.
# You can easily add applets in the dock or as a desklet.
# It is recommended to install the PLUG-INS package (cairo-dock-plug-ins) to
# have acces to more views, dialogs and many plug-ins and applets.
# Some screenshots are available : http://pics.glx-dock.org"
url="http://www.glx-dock.org/"
license="GPL"
arch=('i686' 'x86_64')
depends=('librsvg' 'dbus' 'dbus-glib' 'gtkglext')
makedepends=('bzr' 'intltool' 'perlxml' 'cmake')
conflicts=('cairo-dock' 'cairo-dock-svn')
provides=('cairo-dock')
md5sums=()
source=()

_bzrmod=cairo-dock-core
_bzrtrunk
=lp:cairo-dock-core

build
() {build() {
  
cd $srcdir/
  
  
msg "Connecting to the server...."

  
if [ ! -'./${_bzrmod}' ]; then
    msg 
"Donwloading the latest revision through a 'checkout --lightweight'...."
     
bzr checkout --lightweight ${_bzrtrunk} -q
     touch 
${_bzrmod}/.bzr_checkout
  elif 
[ ! -'./${_bzrmod}/.bzr_checkout' ]; then
    msg 
"The branch of ${_bzrmod} will be moved to '${_bzrmod}_bak': you can remove it if you haven't added any modification...."
     
mv ${_bzrmod} ${_bzrmod}_bak
    msg 
"Donwloading the latest revision through a 'checkout --lightweight' and not a branch...."
     
bzr checkout --lightweight ${_bzrtrunk} -q
     touch 
${_bzrmod}/.bzr_checkout
  
else
    
cd ${_bzrmod} && bzr up && cd ..
  
fi

  msg 
"bzr checkout/up done."

  
msg "Removing old build directory..."
   
cd ${_bzrmod}
   
rm -rf build/
  
msg "Creating build directory..."
   
mkdir ${_bzrmod}/build/ && cd ${_bzrmod}/build/

  
msg "Starting cmake..."
   
cmake .. -DCMAKE_INSTALL_PREFIX=/usr || return 1
  msg 
"Starting make..."
   
make -$(grep -^processor /proc/cpuinfo) || return 1
  msg 
"Starting make install..."
   
make install || return 1
}


And 'cairo-dock-plug-ins-bzr'
pkgname=cairo-dock-plug-ins-bzr
pkgver
=9999
pkgrel
=1
pkgdesc
="Plugins for Cairo-Dock"
url="http://www.glx-dock.org/"
license="GPL"
arch=('i686' 'x86_64')
groups=('lh')
depends=('cairo-dock-bzr' 'libxxf86vm' 'vte' 'alsa-lib')

makedepends=('bzr' 'intltool' 'perlxml' 'libxxf86vm' 'vte')
conflicts=('cairo-dock-plugins' 'cairo-dock-plug-ins' 'cairo-dock-plugins-bzr')
provides=('cairo-dock-plugins' 'cairo-dock-plug-ins')
source=()
md5sums=()
install=

_bzrmod=cairo-dock-plug-ins
_bzrtrunk
=lp:cairo-dock-plug-ins

build
() {
  
cd $srcdir/
  
  
msg "Connecting to the server...."

  
if [ ! -'./${_bzrmod}' ]; then
    msg 
"Donwloading the latest revision through a 'checkout --lightweight'...."
     
bzr checkout --lightweight ${_bzrtrunk} -q
     touch 
${_bzrmod}/.bzr_checkout
  elif 
[ ! -'./${_bzrmod}/.bzr_checkout' ]; then
    msg 
"The branch of ${_bzrmod} will be moved to '${_bzrmod}_bak': you can remove it if you haven't added any modification...."
     
mv ${_bzrmod} ${_bzrmod}_bak
    msg 
"Donwloading the latest revision through a 'checkout --lightweight' and not a branch...."
     
bzr checkout --lightweight ${_bzrtrunk} -q
     touch 
${_bzrmod}/.bzr_checkout
  
else
    
cd ${_bzrmod} && bzr up && cd ..
  
fi

  msg 
"bzr checkout/up done."

  
msg "Removing old build directory..."
   
cd ${_bzrmod}
   
rm -rf build/
  
msg "Creating build directory..."
   
mkdir ${_bzrmod}/build/ && cd ${_bzrmod}/build/

  
msg "Starting cmake..."
   
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Denable-network-monitor=yes -Denable-doncky=yes -Denable-scooby-do=yes -Denable-status-notifier=yes -Denable-folders=yes || return 1
  msg 
"Starting make..."
   
make -$(grep -^processor /proc/cpuinfo) || return 1
  msg 
"Starting make install..."
   
make install || return 1
}

The only thing that I don't know is about the dependences. Tofe can you have a look and add all needed dependences?
  • It uses a "bzr checkout --lightweight" instead of a branch.
  • For me it's not necessary to specify the revision because CD should compile every time !
  • And I don't know if make -j $(grep -c ^processor /proc/cpuinfo) is necessary

ngoonee, Monday 19 July 2010 à 17:53 | Quote


Subscription date : 17 July 2010
Messages : 12
fabounet :
is it normal that your mouse goes out of the screen on the laptop ?
it sounds like a bug in X


Hi fabounet, you're still here =).

Yes it is normal, for screens which aren't the same size. If you have a dual-monitor system you can try setting both to different resolutions. Twinview isn't the only one which will have problems I believe.

matttbe, Friday 23 July 2010 à 13:24 | Quote


Subscription date : 24 January 2009
Messages : 12525
(Message added on the task #65)

Added a task for Tofe

matttbe, Friday 23 July 2010 à 13:47 | Quote


Subscription date : 24 January 2009
Messages : 12525
(Message added on the task #65)

@ Tofe: the compilation of cairo-dock-plug-ins (stable version) on ArchLinux failed to build. You have to replace "cd $srcdir/$_pkgname-$pkgver-$pkgrel" by "cd $srcdir/$pkgname-$pkgver-$subversion"

Tofe, Saturday 14 August 2010 à 19:44 | Quote


Subscription date : 09 February 2008
Messages : 921
Ooops. I'll check all this.

matttbe, Saturday 14 August 2010 à 21:09 | Quote


Subscription date : 24 January 2009
Messages : 12525
Thank you Tofe

Tofe, Sunday 15 August 2010 à 12:33 | Quote


Subscription date : 09 February 2008
Messages : 921
Ah ! I didn't look at the date... The compilation pb is already resolved. For the bzr version, I'll see if I can become the maintainer.

ngoonee, Monday 23 August 2010 à 00:32 | Quote


Subscription date : 17 July 2010
Messages : 12
I've gotten a working PKGBUILD for bzr, I'll request that the maintainance be handed to me. Tofe if you want it please email me (if and when maintainance changes, my email will be in updated PKGBUILD.

Thanks fabounet and matttbe.

EDIT: Oh, and I forgot why I started this thread in the first place. Yes, the new behaviour works just fine, even if my mouse goes off the 'screen' the dock still activates/stays activated.

Thanks all =).

Tofe, Monday 23 August 2010 à 09:05 | Quote


Subscription date : 09 February 2008
Messages : 921
But... isn't there already a PKGBUILD for bzr, maintained by Mautz? And he seems to be following the thing, so it's all fine... In addition, his bzr packages will work fine now, as he has followed some of my advices to use an http:// URI instead of a lp:// one.

ngoonee: What didn't work for you with the PKGBUILD of Mautz?

ngoonee, Monday 23 August 2010 à 09:10 | Quote


Subscription date : 17 July 2010
Messages : 12
It just doesn't work, because its looking for a root ssh permissions or something. I split off package(), which makes build() run fine (no fakeroot in that case). I'll email him.

matttbe, Monday 23 August 2010 à 09:11 | Quote


Subscription date : 24 January 2009
Messages : 12525
@Tofe: did you have a look to my PKGBUILD?
The only thing that I don't know is about the dependences. Tofe can you have a look and add all needed dependences?
It uses a "bzr checkout --lightweight" instead of a branch.
For me it's not necessary to specify the revision because CD should compile every time !
And I don't know if make -j $(grep -c ^processor /proc/cpuinfo) is necessary

Tofe, Monday 23 August 2010 à 11:02 | Quote


Subscription date : 09 February 2008
Messages : 921
@ngoonee: I already asked him, in fact, to split into build() and install(). I didn't know that doing this would end in no fakeroot for build(), so I kept the recommandation for not using launchpad URI style with bzr. In addition, there is no longer a need to use "|| return 1" in PKGBUILD (@see my mail to aur-general here: http://www.mail-archive.com/aur-general@archlinux.org/msg08614.html, which has been successfully ignored )

@Mattbe: I'll have a look to the dependancies.

miau, Friday 27 August 2010 à 13:31 | Quote


Subscription date : 27 April 2009
Messages : 38
Hello,

i'm the package maintainer of the package. The packages both build fine with the PKGBUILD a few days ago. Can't test it right now, because my laptop broke down. It'll should be fixed at the weekend. Then i'll take a look at the problem.

Bye.

matttbe, Friday 27 August 2010 à 13:34 | Quote


Subscription date : 24 January 2009
Messages : 12525
@Miau: Thank you for your help

Ideas | Propositions

Subjects Author Language Messages Last message
[Resolved] Request - Handling of twinview/xinerama [Bug #65]
Page : 1 2
ngoonee English 22 Tofe [Read]
24 September 2010 à 18:24

Post a message

Anti-spam filter 9 (*) times (*) 8 =
            
Did you know ? The Colour tag can display your code in any colours : [color=#ffdfa8][/color]


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Request - Handling of twinview/xinerama Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.