Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running but not working #2

Open
tkapias opened this issue Mar 16, 2024 · 11 comments
Open

Running but not working #2

tkapias opened this issue Mar 16, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@tkapias
Copy link

tkapias commented Mar 16, 2024

I installed i3-switcher-x11 with cargo+git and apt+deb, both binaries seem to run fine but nothing works. There is no output, window or reaction to alt+tab.

I don't have any prior binding on alt+tab and I tried with win+tab, which is my i3wm modifier but it doesn't work too.

OS: Debian Testing - trixie/sid x86_64
WM: i3 (X11) - version 4.23 (2023-10-29)
i3bar: i3status-rs - 0.33.0 (commit e62d10e 2024-02-19)
i3-switcher-x11: 0.2
i3wm modifier: MOD4 (win key)

@iondodon
Copy link
Owner

Thank you for reporting this. I'm working now on reimplementing big parts of the code, which might fix your problem. I will let you know when a new version will be available.

@iondodon
Copy link
Owner

iondodon commented Mar 16, 2024

@tkapias There is new version 0.3.0. Please try it and tell me if the problem still persists. Use left Alt key.

@iondodon iondodon self-assigned this Mar 16, 2024
@iondodon iondodon added the bug Something isn't working label Mar 16, 2024
@tkapias
Copy link
Author

tkapias commented Mar 16, 2024

Still not working.

But now I have a warning in the output at launch:

(i3-switcher-x11:1469639): Gtk-WARNING **: 22:24:45.348: Theme parser error: <data>:10:13-23: No property named "max-height"

(i3-switcher-x11:1469639): Gtk-WARNING **: 22:24:45.348: Theme parser error: <data>:13:13-22: No property named "max-width"

@iondodon
Copy link
Owner

Ok, will continue to investigate this.

@iondodon
Copy link
Owner

@tkapias What do you get if you run with RUST_LOG=trace i3-switcher-x11?

@tkapias
Copy link
Author

tkapias commented Mar 17, 2024

I get a loop of Window visible - false. Even when I press Alt+Tab.

$ RUST_LOG=trace i3-switcher-x11                                             
                                                                             
(i3-switcher-x11:2714523): Gtk-WARNING **: 19:02:24.209: Theme parser error: <data>:10:13-23: No property named "max-height"                              
                                                                             
(i3-switcher-x11:2714523): Gtk-WARNING **: 19:02:24.209: Theme parser error: <data>:13:13-22: No property named "max-width"                               
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false      
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false      
[2024-03-17T12:02:24Z DEBUG i3_switcher_x11::ui] Window visible - false

@tkapias
Copy link
Author

tkapias commented Mar 17, 2024

I checked xev to be sure that there is no issue with my alt key code. Here is the log when pressing and releasing Alt+Tab:

KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179959622, (1161,519), root:(1163,521),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179959902, (1161,519), root:(1163,521),
    state 0x18, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) " "
    XmbLookupString gives 1 bytes: (09) "       "
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179960030, (1161,519), root:(1163,521),
    state 0x18, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) " "
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x32d, subw 0x0, time 179960246, (1161,519), root:(1163,521),
    state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

@tkapias
Copy link
Author

tkapias commented Mar 17, 2024

And I tried also to see if the i3-switcher-x11 window exist by running wmctrl -l while pressing Alt-Tab, but there is no visible or hidden matching window.

@iondodon
Copy link
Owner

iondodon commented Mar 17, 2024

Check if you have these installed:

libayatana-appindicator3-1
llvm
clang
libx11-6
libxcb-randr0
libxrandr2

@tkapias
Copy link
Author

tkapias commented Mar 17, 2024

  • All of them were already installed.

@Lextum
Copy link

Lextum commented Jul 1, 2024

Hey, I am running into the same issue here. With the RUST_LOG=trace set, I get just the following output

[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false
[2024-07-01T08:17:01Z DEBUG i3_switcher_x11::ui] Window visible - false

When I press Alt+Tab, I get en indent in the console, not sure if this means anything
`^[ [2024-07-01T08:17:00Z DEBUG i3_switcher_x11::ui] Window visible - false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants