Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get Lubos Lunak's KDE xinerama improvements patch?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
seldom_used
n00b
n00b


Joined: 06 Feb 2007
Posts: 25

PostPosted: Tue Feb 06, 2007 11:24 pm    Post subject: How to get Lubos Lunak's KDE xinerama improvements patch? Reply with quote

Hi,
There is a set of patches by Lubos Lunak that adds some nice ehnancements to KDE's xinerama handling (http://ktown.kde.org/~seli/xinerama/). I used it on Suse 10.1 and loved it, and I'm trying to get it to appear in my new Gentoo install.

2.6.18-gentoo-r6 smp, KDE 3.5.5, amd64, Xorg 7.1, a clean install 2 days ago

Here's what I did
- installed a kde monolithic build (emerge kde), then discovered the patch isn't there
- after reading a blog at http://farragut.flameeyes.is-a-geek.org/articles/2007/01/28/today-in-gentoos-kde-land switched to kde split ebuilds since the patch is there:
Code:
emerge -C kde
emerge -C kdeartwork kdebase kdebase-pam kdelibs
emerge --depclean
emerge kde-meta

- the regular stable sources don't have it either, so I checked the portage package DB, found which versions had the patches in, and did:
Code:
echo "kde-base/kdesktop ~* *" >> /etc/portage/package.keywords
echo "kde-base/kwin ~* *" >> /etc/portage/package.keywords
echo "x11-libs/qt ~* *" >> /etc/portage/package.keywords
emerge "<x11-libs/qt-4.1.4"
emerge "<kde-base/kdesktop-3.5.6" "<kde-base/kwin-3.5.6" "<kde-base/kdelibs-3.5.6"

No errors during any of this, and everything still works fine.
This got me the patches (saw them in the build messages), but the additions don't show up in kcontrol shortcuts editor nor does the functionality work. I've still got the standard KDE.
BTW my USE variable in /etc/make.conf includes 'xinerama', and everything's functional except the patches.
Any ideas on what I missed?
Thanks,
Alex.
Back to top
View user's profile Send private message
seldom_used
n00b
n00b


Joined: 06 Feb 2007
Posts: 25

PostPosted: Fri Feb 09, 2007 5:18 am    Post subject: Reply with quote

I've tried the latest KDE build as well to make sure there wasn't another component needed to complete the patchset:
Code:
echo "kde-base/kde-meta ~* *" >> /etc/portage/package.keywords
emerge kde-meta

This got me the current 3.5.6

And I've tried with a clean kde user profile, still no luck. Any other ideas please?
Anyone using these patches at all?
Back to top
View user's profile Send private message
seldom_used
n00b
n00b


Joined: 06 Feb 2007
Posts: 25

PostPosted: Tue Feb 13, 2007 12:41 am    Post subject: Reply with quote

After several more attempts I still can't get the new functionality to show up in the kde control center...
It seems the patches are only in the 3.5.5 masked sources, not in 3.5.6. Am I correct?
Anyway I've tried to unmerge all kde-related packages, remove any files it may have left behind, and emerge the latest 3.5.5 split ebuild again.
I did something like
Code:
emerge -C kde-meta
emerge -C kdesktop k3b kdmtheme kwin kompare kdesvn cervisia kdelibs gwenview
for x in `equery l | grep kde`; do emerge -C $x; done
cd /usr
mv kde kde.old

At this point I think all kde was gone & all previous configs removed (moved into /usr/kde.old). Now I unmasked all 3.5.5 ~amd64 packages and installed:
Code:
emerge --sync
cd /usr/portage
for x in kde-*/*; do echo "=$x-3.5.5* ~*" >> /etc/portage/package.keywords ; done
emerge =qt-3* =kde-meta-3.5.5* k3b cervisia kdesvn gwenview kdmtheme -av

I've tried a clean user profile by removing ~/.kde* symlink and directory - also to no avail.

At this point I think I'm missing a package from this patchset to make it all work. I think the only ones are qt-3.3.6-r5, kdelibs-3.5.5-r7, kwin-3.5.5-r2, and kdesktop-3.5.5-r1. Is there anything else?

If anyone has got this working, please tell me what you did!
Thanks, Alex.
Back to top
View user's profile Send private message
eldacar
n00b
n00b


Joined: 22 Feb 2005
Posts: 64
Location: Göteborg, Sweden

PostPosted: Mon Apr 23, 2007 2:05 pm    Post subject: Reply with quote

Looking for these patches myself and after some research it seems that all the patches applies when building as I get:

kwin:
* Applying kwin-3.5.5-seli-xinerama.patch.bz2

kdesktop:
* Applying kdesktop-3.5.5-seli-xinerama.patch

kdelibs:
* Applying kdelibs-3.5.5-seli-xinerama.patch.bz2

qt:
* Applying qt-3.3.8-seli-xinerama.patch


But I still don't get the functionality of the patches when all is built and done...
Back to top
View user's profile Send private message
seldom_used
n00b
n00b


Joined: 06 Feb 2007
Posts: 25

PostPosted: Tue Apr 24, 2007 4:06 pm    Post subject: Reply with quote

Yeah, I see the patches during emerge, too. I have kind of given up to get it working. The features are great though, especially keybindings to send windows to different screens, and limiting alt-tab to show only windows from the active screen.
Back to top
View user's profile Send private message
eldacar
n00b
n00b


Joined: 22 Feb 2005
Posts: 64
Location: Göteborg, Sweden

PostPosted: Wed Apr 25, 2007 7:09 am    Post subject: Reply with quote

Now that I think of it the alt-tab only shows windows from the active screen is working here, though I don't know how to turn it off or on.....
Back to top
View user's profile Send private message
Alrua
n00b
n00b


Joined: 01 Feb 2004
Posts: 45

PostPosted: Tue May 01, 2007 7:05 pm    Post subject: Reply with quote

I have found that the patches are indeed applied. However, the elements that control them are hidden.

The "Separate screen focus" and "Active mouse screen" options can be found in kcontrol under Desktop->Window Behaviour. The Separate Screen Focus seems to be inverted (i.e. enabled when the check box is cleared and vice versa).

The keyboard shortcuts to move windows between screens and switch screen focus have to be added manually to the kdeglobals config file in ~/.kde/share/config
On my box KDE is constantly updating this file, so I had to logout and do the editing on the console. What you need to do is this:

-Open the file ~/.kde/share/config/kdeglobals in a text editor.
-Find the section labeled [Global Shortcuts] (I just searched for a known existing shortcut, e.g. "Switch to Next Desktop".
-Add the new shortcut definitions in the same format as the existing ones.

The shortcut names are (taken from the kdebase.patch from http://ktown.kde.org/~seli/xinerama/):

Window to Screen 0
Window to Screen 1
Window to Screen 2
Window to Screen 3
Window to Screen 4
Window to Screen 5
Window to Screen 6
Window to Screen 7
Window to Next Screen
Switch to Screen 0
Switch to Screen 1
Switch to Screen 2
Switch to Screen 3
Switch to Screen 4
Switch to Screen 5
Switch to Screen 6
Switch to Screen 7
Switch to Next Screen

For example, I added these lines:

Switch to Next Screen=Win+Q
Window to Next Screen=Win+Ctrl+Q


Start up KDE, and the shortcuts should work.


Hope this helps :)
-Alrua
Back to top
View user's profile Send private message
seldom_used
n00b
n00b


Joined: 06 Feb 2007
Posts: 25

PostPosted: Tue May 01, 2007 9:50 pm    Post subject: Reply with quote

Yes, it worked for me, thanks very much! I remember editing the file a while back, but I probably did it while KDE was running so the changes never persisted. It works fine now.

Edit: posted a bug about this: http://bugs.gentoo.org/show_bug.cgi?id=176734
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum