Bug 197992 - ctrl F1, F2, F3 AND F4 do work, but F5, F6 and upwards don't switch virtual screen
Summary: ctrl F1, F2, F3 AND F4 do work, but F5, F6 and upwards don't switch virtual ...
Status: VERIFIED DUPLICATE of bug 153799
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 21:06 UTC by BORGULYA Gábor
Modified: 2009-08-16 14:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BORGULYA Gábor 2009-06-26 21:06:47 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

This is a fresh Kubuntu install on my new laptop. Ctrl F1, F2, F3 AND F4 do work, but F5, F6  and upwards don't switch virtual screen.
Comment 1 Thomas Lübking 2009-06-26 21:57:26 UTC
i guess because those shortcuts aren't set by default...

open "kcmshell4 keys" (or find your way through the systemsettings) and select kwin as component.

see if these global shortcuts (ctrl+f5 etc) are actually set, set them in case and hope for the best ;-)

if that did it, please close this bug or transform it into a wish that says "global shortcuts for virtual desktops > 4 should be set by default"
Comment 2 Andreas Pakulat 2009-06-26 22:08:26 UTC
(In reply to comment #1)
> if that did it, please close this bug or transform it into a wish that says
> "global shortcuts for virtual desktops > 4 should be set by default"

Please spare yourself the work of filing a wish, there's no reason why kwin should have more than 4 of these shortcuts set by default because the default amount of virtual desktops is 4 as well. It doesn't make sense to reserve _global_ shortcuts (and hence stealing them from all apps) for things that are not available by default.

Adding a 5th desktop and assigning Ctrl+F5 to it as shortcut works fine here (using KDE 4.3 RC1), so I'm closing this.
Comment 3 BORGULYA Gábor 2009-06-27 02:16:28 UTC
(In reply to comment #1)
> open "kcmshell4 keys" (or find your way through the systemsettings) and select
> kwin as component.
Thanks. Although I couldn't find the relevant part of systemsetting, I was able to set the shortcuts using the command you suggested.
Comment 4 BORGULYA Gábor 2009-06-27 02:23:10 UTC
Reopening as a wish:
Please set global shortcuts for virtual desktops > 4 by default: Ctrl+F5, Ctrl+F6 etc.

As you can see above not everybody likes this wish. So here is my justification:
- Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so for those who are upgrading from KDE3 this appears to be a bug.
- I believe that sensible defaults are better than no defaults.
- It's not easy to find these shortcut setting in the systemsettings application.
Comment 5 Andreas Pakulat 2009-06-27 11:25:29 UTC
(In reply to comment #4)
> Reopening as a wish:
> Please set global shortcuts for virtual desktops > 4 by default: Ctrl+F5,
> Ctrl+F6 etc.
> 
> As you can see above not everybody likes this wish. So here is my
> justification:
> - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so for those who are
> upgrading from KDE3 this appears to be a bug.

No they did not. KDE3 also shipped with 4 virtual desktops and only Ctrl+F1-F4 by default,

> - I believe that sensible defaults are better than no defaults.

Right and the sensible default is to have as many shortcuts on by default as there are virtual desktop by default.

> - It's not easy to find these shortcut setting in the systemsettings
> application.

Thats no good reason, if that is a problem then the layout of systemsettings needs to be improved.
Comment 6 Andreas Pakulat 2009-06-27 12:08:01 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Reopening as a wish:
> > Please set global shortcuts for virtual desktops > 4 by default: Ctrl+F5,
> > Ctrl+F6 etc.
> > 
> > As you can see above not everybody likes this wish. So here is my
> > justification:
> > - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so for those who are
> > upgrading from KDE3 this appears to be a bug.
> 
> No they did not. KDE3 also shipped with 4 virtual desktops and only Ctrl+F1-F4
> by default,

Ooops, my bad, apparently kwin/KDE3 did register the other F-Keys. Which is a major annoyance for Applications as they cannot use these shortcuts anymore.

The amount of global shortcuts, such as the KWin ones should be kept to the bare minimum because it always means stealing those shortcuts from applications which then have to find other combinations that might prove hard to execute (think of 4-key shortcuts)

Anyway, properly re-opening as wish.
Comment 7 Martin Flöser 2009-06-27 12:16:24 UTC

*** This bug has been marked as a duplicate of bug 153799 ***
Comment 8 BORGULYA Gábor 2009-06-27 12:21:43 UTC
> > - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so for those who are
> > upgrading from KDE3 this appears to be a bug.
> 
> No they did not. KDE3 also shipped with 4 virtual desktops and only Ctrl+F1-F4
> by default,
I don't know how many virtual desktops KDE3 did have by default. By I insist that after setting the number of virtual desktops to 10 all shortcuts from Ctrl+F1 to Ctrl+F10 worked out of the box. And I think that's useful.


> > - I believe that sensible defaults are better than no defaults.
> Right and the sensible default is to have as many shortcuts on by default as
> there are virtual desktop by default.
In my point of view as the Ctrl+F5 and upwards have no default value at the moment a) assigning them to virtual desktops make no harm b) make the system more comfortable for those who change the number of virtual desktops.

As you see although you don't like this wish, Thomas seems to do in addition to me.
Comment 9 Andreas Pakulat 2009-06-28 12:08:21 UTC
(In reply to comment #8)
> > > - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so for those who are
> > > upgrading from KDE3 this appears to be a bug.
> > 
> > No they did not. KDE3 also shipped with 4 virtual desktops and only Ctrl+F1-F4
> > by default,
> I don't know how many virtual desktops KDE3 did have by default. By I insist
> that after setting the number of virtual desktops to 10 all shortcuts from
> Ctrl+F1 to Ctrl+F10 worked out of the box. And I think that's useful.

Just because you find it useful, doesn't mean it has to be a default.

> > > - I believe that sensible defaults are better than no defaults.
> > Right and the sensible default is to have as many shortcuts on by default as
> > there are virtual desktop by default.
> In my point of view as the Ctrl+F5 and upwards have no default value at the
> moment a) assigning them to virtual desktops make no harm

How do you know? Did you check each and every KDE application out there wether it uses one of them as shortcut?

> b) make the system
> more comfortable for those who change the number of virtual desktops.

What should be done is making it easier to realize that these shortcuts also need to be added when the number of desktops is increased. Or maybe even auto-add them when increasing the number of desktops. But I don't see any reason to assign more shortcuts to an application by default than it can use in the default setup. Anyway, this is tracked in a different bug now and I'm going to add this there.
Comment 10 BORGULYA Gábor 2009-06-28 12:31:41 UTC
(In reply to comment #9)
> > > > - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so
> > > > for those who are upgrading from KDE3 this appears to be a bug.
> > > No they did not. KDE3 also shipped with 4 virtual desktops and
> > > only Ctrl+F1-F4 by default,
> > I don't know how many virtual desktops KDE3 did have by default. By
> > I insist that after setting the number of virtual desktops to 10
> > all shortcuts from Ctrl+F1 to Ctrl+F10 worked out of the box. And I
> > think that's useful.
> Just because you find it useful, doesn't mean it has to be a default.
I believe that the whole purpose of having default values is their usefulness. It's good to have everything set to a value that works out most of the time. This way only a minority of the users have to bother with changing the settings.

> > In my point of view as the Ctrl+F5 and upwards have no default
> > value at the moment a) assigning them to virtual desktops make no
> > harm
> How do you know? Did you check each and every KDE application out
> there wether it uses one of them as shortcut?
1. On my system pressing Ctrl+F5 and upwards had no effect.
2. When I assigned these shortcuts to virtual screens I quickly looked around in the shortcut setting application suggested above and I haven't spotted any conflicts.
3. When I defined these shortcuts I received no warnings of conflicts between shortcuts. As I did receive such warnings when changing shortcuts in kmail I assume that I would have received warnings here as well if there were any conflicts among shortcuts.
Do you know about any conflicts among shortcuts?

> > b) make the system
> > more comfortable for those who change the number of virtual
> > desktops.
> What should be done is making it easier to realize that these
> shortcuts also need to be added when the number of desktops is
> increased. Or maybe even auto-add them when increasing the number of
> desktops. But I don't see any reason to assign more shortcuts to an
> application by default than it can use in the default setup. Anyway,
> this is tracked in a different bug now and I'm going to add this
> there.
I like the idea of auto adding. And if there was a conflict between shortcuts a warning could be issued instead of overriding an existing shortcut.
Comment 11 Andreas Pakulat 2009-06-28 13:18:59 UTC
Ok, one last comment here. Everything else should be said in the other report.

(In reply to comment #10)
> (In reply to comment #9)
> > > > > - Ctrl+F5, Ctrl+F6 etc did work in previous KDE versions, so
> > > > > for those who are upgrading from KDE3 this appears to be a bug.
> > > > No they did not. KDE3 also shipped with 4 virtual desktops and
> > > > only Ctrl+F1-F4 by default,
> > > I don't know how many virtual desktops KDE3 did have by default. By
> > > I insist that after setting the number of virtual desktops to 10
> > > all shortcuts from Ctrl+F1 to Ctrl+F10 worked out of the box. And I
> > > think that's useful.
> > Just because you find it useful, doesn't mean it has to be a default.
> I believe that the whole purpose of having default values is their usefulness.

Right.

> It's good to have everything set to a value that works out most of the time.
> This way only a minority of the users have to bother with changing the
> settings.

Ok, so please provide the data that shows that most users are using more than 4 desktops. In addition it would also be useful to see how many are used by the majority of users so we can adjust the default.

> > > In my point of view as the Ctrl+F5 and upwards have no default
> > > value at the moment a) assigning them to virtual desktops make no
> > > harm
> > How do you know? Did you check each and every KDE application out
> > there wether it uses one of them as shortcut?
> 1. On my system pressing Ctrl+F5 and upwards had no effect.

Ok, so there's no global shortcut set for this.

> 2. When I assigned these shortcuts to virtual screens I quickly looked around
> in the shortcut setting application suggested above and I haven't spotted any
> conflicts.

Again, just means no global shortcuts using these.

> 3. When I defined these shortcuts I received no warnings of conflicts between
> shortcuts.

That means that there was no application that defines these global shortcuts.

> As I did receive such warnings when changing shortcuts in kmail I
> assume that I would have received warnings here as well if there were any
> conflicts among shortcuts.

No you won't. Unfortunately it doesn't work that way, the global shortcuts settings cannot know wether there's an application that may use these shortcuts. I'm actually not even sure wether it can check the currently running applications.

> Do you know about any conflicts among shortcuts?

Yes, my KDevelop here uses Ctrl+F8 for installing, but thats a custom-defined shortcut. Not to mention that I only use very few applications.
Comment 12 BORGULYA Gábor 2009-06-28 15:34:36 UTC
(In reply to comment #11)
> > > How do you know? Did you check each and every KDE application out
> > > there wether it uses one of them as shortcut?
...
> > Do you know about any conflicts among shortcuts?
> Yes, my KDevelop here uses Ctrl+F8 for installing, but thats a custom-defined
> shortcut. Not to mention that I only use very few applications.

So you asked me how I know to take me to task about. Shame on you!
You should appreciate that users like me do contribute with bug reports.
KDE has to say goodbye to my help in all the projects where your name appears.
Comment 13 Andreas Pakulat 2009-06-28 16:26:27 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > > > How do you know? Did you check each and every KDE application out
> > > > there wether it uses one of them as shortcut?
> ...
> > > Do you know about any conflicts among shortcuts?
> > Yes, my KDevelop here uses Ctrl+F8 for installing, but thats a custom-defined
> > shortcut. Not to mention that I only use very few applications.
> 
> So you asked me how I know to take me to task about.

Sorry, but I don't understand that sentence. All I asked you was wether you checked all apps before claiming that there's no app using Ctrl+F5 currently. And apparently you didn't, nonetheless did I, but I also don't claim that Ctrl+F5 as global shortcut won't break any app.

> Shame on you!
> You should appreciate that users like me do contribute with bug reports.

Sure I do, I value bugreports from users very high, however I reserve the right to discuss any bugreport and my opinion about it. That includes wether I think a certain wish should be fulfilled or not.

> KDE has to say goodbye to my help in all the projects where your name appears.

Thats sad to hear, note that I never intended to insult you in any way. I only tried to point out why adding these shortcuts as defaults can cause harm and that there's a much better alternative to make the shortcuts in question work when using more than the default amount of virtual desktops.

Anyway, really last one from me, if you want to continue discussing please do so in the bugreport thats still open for this( 153779 )
Comment 14 Martin Flöser 2009-06-28 16:37:20 UTC
I just wanted to add that shortcuts >= ctrl+f8 are used for effects:
 * ctrl+f8 is desktop grid
 * ctrl+f9 is present windows current desktop
 * ctrl+f10 is present windows all desktops
 * ctrl+f11 is cube effect (although this effect is not activated by default)
 * ctrl+f12 is used by Plasma to activate the dashboard

So remaining is ctrl+f5, f6, f7. Having defaults only for 4 desktops and some distros reducing to 2 (e.g. Kubuntu) I fail to see the advantage of adding shortcuts to not assigned desktops. It sounds very inconsistent to have shortcuts for not existing desktops.

I currently see two possibilities: add shortcuts (semi-) automatically like in the referenced bug. But there are only three free shortcuts, so that's kind of overkill to add the functionality. Second possibility is to configure the shortcuts in the same kcm. That sounds to me like a good idea.
Comment 15 Thomas Lübking 2009-08-16 14:19:11 UTC
SVN commit 1011934 by luebking:

BUG: 153799
BUG: 187952
CCBUG: 197992
CCBUG: 203320

extrapolate and (if available) set shortcuts for new virtual desktops
automatically


 M  +79 -18    main.cpp  
 M  +1 -0      main.h  
 M  +15 -0     main.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1011934