Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zooming via [Ctrl]+[=] broke
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
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Fri Mar 27, 2015 9:38 pm    Post subject: Zooming via [Ctrl]+[=] broke Reply with quote

Usually, [Ctrl]+[-] zooms out and [Ctrl]+[=] zooms in (on an US keyboard layout). This works in most applications that support zooming (Firefox, Chromium, gedit, etc).

I've messed with some keyboard settings recently, and now [Ctrl]+[=] is broken. Instead, I have to use [Ctrl]+[Shift]+[=]. I can kinda see why, because + is generated with [Shift]+[=], but zooming was always an exception here!

This problem persists across all applications. It is extremely annoying, but I don't know what caused this change. Google does not reveal anything either (try googling for +, good luck :P)

Does anyone have any ideas?
Back to top
View user's profile Send private message
atemv
n00b
n00b


Joined: 09 Aug 2014
Posts: 63

PostPosted: Sat Mar 28, 2015 2:54 am    Post subject: Reply with quote

Which desktop environment do you use?
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sat Mar 28, 2015 6:44 am    Post subject: Reply with quote

Xfce 4.12
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sat Mar 28, 2015 8:43 am    Post subject: Reply with quote

I tracked the source of the problem down. I have two keyboard layouts defined in Xfce's keyboard settings, US and DE. I can switch them via a key combination.

If the DE layout defines the nodeadkeys variant, [Ctrl]+[=] zooming breaks WHEN THE US LAYOUT IS ACTIVE. It remains broken until I log out, removing the DE layout during runtime does not help.
Curiously, if the DE layout defines no variant, this problem does not occur.

Good:
Code:
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      thinkpad60
layout:     us,de
variant:    ,
options:    compose:menu,grp:alt_caps_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+de:2+inet(evdev)+group(alt_caps_toggle)+compose(menu)
geometry:   thinkpad(60)
xkb_keymap {
   xkb_keycodes  { include "evdev+aliases(qwerty)"   };
   xkb_types     { include "complete"   };
   xkb_compat    { include "complete"   };
   xkb_symbols   { include "pc+us+de:2+inet(evdev)+group(alt_caps_toggle)+compose(menu)"   };
   xkb_geometry  { include "thinkpad(60)"   };
};


Broken:
Code:
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      thinkpad60
layout:     us,de
variant:    ,nodeadkeys
options:    compose:menu,grp:alt_caps_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+de(nodeadkeys):2+inet(evdev)+group(alt_caps_toggle)+compose(menu)
geometry:   thinkpad(60)
xkb_keymap {
   xkb_keycodes  { include "evdev+aliases(qwerty)"   };
   xkb_types     { include "complete"   };
   xkb_compat    { include "complete"   };
   xkb_symbols   { include "pc+us+de(nodeadkeys):2+inet(evdev)+group(alt_caps_toggle)+compose(menu)"   };
   xkb_geometry  { include "thinkpad(60)"   };
};




Does this sound like a Xorg bug?
Back to top
View user's profile Send private message
atemv
n00b
n00b


Joined: 09 Aug 2014
Posts: 63

PostPosted: Sat Mar 28, 2015 10:35 am    Post subject: Reply with quote

There is a nice little app to show X events, called xev, maybe it can help you further.
Just
Code:
emerge -a xev

and run
Code:
xev
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1717

PostPosted: Sat Mar 28, 2015 1:30 pm    Post subject: Reply with quote

Quote:
[Ctrl]+[=]
it sometimes is [Ctrl]+[-] and [Ctrl]+[+]. In such a case numpad or [Ctrl]+[Shift]+[=] might work.
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sat Mar 28, 2015 1:42 pm    Post subject: Reply with quote

atemv wrote:
There is a nice little app to show X events, called xev, maybe it can help you further.
Just
Code:
emerge -a xev

and run
Code:
xev

I had a look. Pressing [Ctrl]+[=] when:

Good:
Code:
KeyPress event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10572194, (-322,629), root:(549,1079),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10575609, (-322,629), root:(549,1079),
    state 0x4, keycode 21 (keysym 0x3d, plus), same_screen YES,
    XLookupString gives 1 bytes: (3d) "="
    XmbLookupString gives 1 bytes: (3d) "="
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10575647, (-322,629), root:(549,1079),
    state 0x4, keycode 21 (keysym 0x3d, plus), same_screen YES,
    XLookupString gives 1 bytes: (3d) "="
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10577249, (-322,629), root:(549,1079),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


Broken:
Code:
KeyPress event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10572194, (-322,629), root:(549,1079),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

FocusOut event, serial 136, synthetic NO, window 0x2e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 136, synthetic NO, window 0x2e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 136, synthetic NO, window 0x0,
    keys:  2   0   0   0   32  0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 37, synthetic NO, window 0x4e00001,
    root 0x9e, subw 0x0, time 10577249, (-322,629), root:(549,1079),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


The difference is that under the broken condition, the [=] key press is never received. Instead there are FocusOut/FocusIn events. Is the window temporarily losing focus? How come?
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 517

PostPosted: Sat Mar 28, 2015 4:03 pm    Post subject: Reply with quote

I've filed a bug upstream: https://bugs.freedesktop.org/show_bug.cgi?id=89803
Back to top
View user's profile Send private message
atemv
n00b
n00b


Joined: 09 Aug 2014
Posts: 63

PostPosted: Wed Apr 01, 2015 2:44 am    Post subject: Reply with quote

Today I did a system update due to the new multilib system, and I got the following message:
Code:
* Messages for package x11-libs/libXi-1.7.4:

 * Some special keys and keyboard layouts may stop working.
 * To fix them, recompile xorg-server.

Maybe It can explain it, have you tried recompile the xorg-server?
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