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

Floating window opens below other floating window #3630

Open
memeplex opened this Issue Feb 22, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@memeplex
Copy link

memeplex commented Feb 22, 2019

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

This happens when using the application blueberry (https://www.archlinux.org/packages/community/any/blueberry/). Open one instance, turn bluetooth on, a list of bt devices will appear. Now double click on one device, a pop up describing it appears at the front of the window stack, that's ok, close it:

image

Now double click again on one device, the pop up opens again but now it's under the main window, barely visible:

image

I've a rule configured for this application:

for_window [class="^Blueberry.py$"] floating enable

This class matches both the main window and the popup.

Expected Behavior

Floating windows to always open at the top of the stack.

Reproduction Instructions

Already given above.

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 506) abort…)
Loaded i3 config: /home/carlos/.config/i3/config (Last modified: Thu 21 Feb 2019 11:23:55 PM -03, 116 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
# General settings
set $mod Mod4
floating_modifier $mod
font pango:DejaVu Sans Bold 10
default_border normal 1
hide_edge_borders both
workspace_auto_back_and_forth yes
set $tick exec --no-startup-id i3-msg -t send_tick
set $nexec exec --no-startup-id

# Theme
set $bg #13191c
set $border #101619
set $fg #83898c
set $fg_high #cfd7d3
set $fg_urg #cc6666
#                       Border  Background Text     Indicator Child border
client.focused          $border $bg        $fg_high $fg       $border
client.focused_inactive $border $bg        $fg      $fg       $border
client.unfocused        $border $bg        $fg      $fg       $border
client.urgent           $border $bg        $fg_urg  $fg       $border
client.placeholder      $border $bg        $fg      $fg       $border
client.background       $border

# App shortcuts
bindsym $mod+l $nexec emacsclient -c
bindsym $mod+Control+l exec xfce4-terminal
bindsym $mod+Shift+l exec firefox
bindsym $mod+Mod1+l exec spotify
bindsym $mod+grave $nexec rofi -no-fixed-num-lines -location 7 -show window -yoffset -25
bindsym $mod+Return $nexec "rofi -location 7 -combi-modi drun,run -show combi -yoffset -25"
bindsym $mod+Control+Return $nexec music toggle
bindsym $mod+Shift+Return $nexec music mute
bindsym $mod+Mod1+Return $nexec dual
bindsym $mod+Left $nexec music prev
bindsym $mod+Right $nexec music next
bindsym $mod+Down $nexec music down
bindsym $mod+Up $nexec music up
bindsym $mod+Shift+Down $nexec xbacklight -dec 2
bindsym $mod+Shift+Up $nexec xbacklight -inc 2
bindsym $mod+s $nexec search $(xclip -o)
bindsym $mod+Control+s $nexec search -r
bindsym $mod+o exec gscreenshot
bindsym $mod+Control+o $nexec passmenu -l 10 -i
bindsym $mod+Shift+o $nexec CM_LAUNCHER=rofi clipmenu -i
bindsym $mod+Mod1+o $nexec pulseaudio-equalizer enable
bindsym $mod+t $nexec bar start-pomodoro
bindsym $mod+Control+t $nexec bar stop-pomodoro

# Change focus
bindsym $mod+b focus left
bindsym $mod+n focus down
bindsym $mod+Shift+Control+n focus child
bindsym $mod+p focus up
bindsym $mod+Shift+Control+p focus parent
bindsym $mod+f focus right
bindsym $mod+Tab focus right
bindsym $mod+u [urgent=latest] focus

# Change layout
bindsym $mod+w layout splith
bindsym $mod+Control+w layout splitv
bindsym $mod+a layout tabbed
bindsym $mod+Control+a layout stacking
bindsym $mod+d split h, $tick format_title
bindsym $mod+Control+d split v, $tick format_title
bindsym $mod+m fullscreen toggle
bindsym $mod+Control+m border toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+Control+space floating toggle

# Move window
bindsym $mod+Control+b move left
bindsym $mod+Control+n move down
bindsym $mod+Control+p move up
bindsym $mod+Control+f move right
bindsym $mod+Control+period move position center
bindsym $mod+Control+1 move container to workspace 1
bindsym $mod+Control+2 move container to workspace 2
bindsym $mod+Control+3 move container to workspace 3
bindsym $mod+Control+4 move container to workspace 4
bindsym $mod+Control+5 move container to workspace 5
bindsym $mod+Control+6 move container to workspace 6
bindsym $mod+Control+7 move container to workspace 7
bindsym $mod+Control+8 move container to workspace 8
bindsym $mod+Control+9 move container to workspace 9
bindsym $mod+Control+0 move container to workspace 10

# Resize window
bindsym $mod+Control+Left resize shrink width 10 px or 5 ppt
bindsym $mod+Control+Up resize grow height 10 px or 5 ppt
bindsym $mod+Control+Down resize shrink height 10 px or 5 ppt
bindsym $mod+Control+Right resize grow width 10 px or 5 ppt

# Switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Escape workspace next_on_output

# Move workspace
bindsym $mod+Shift+1 rename workspace to 1
bindsym $mod+Shift+2 rename workspace to 2
bindsym $mod+Shift+3 rename workspace to 3
bindsym $mod+Shift+4 rename workspace to 4
bindsym $mod+Shift+5 rename workspace to 5
bindsym $mod+Shift+6 rename workspace to 6
bindsym $mod+Shift+7 rename workspace to 7
bindsym $mod+Shift+8 rename workspace to 8
bindsym $mod+Shift+9 rename workspace to 9
bindsym $mod+Shift+0 rename workspace to 10
bindsym $mod+Mod1+p move workspace to output up
bindsym $mod+Mod1+n move workspace to output down
bindsym $mod+Mod1+f move workspace to output right
bindsym $mod+Mod1+b move workspace to output left

# Marks
bindsym $mod+F1 [con_mark=1] focus
bindsym $mod+Control+F1 mark 1, floating enable, move scratchpad
bindsym $mod+Shift+F1 mark --toggle 1
bindsym $mod+F2 [con_mark=2] focus
bindsym $mod+Control+F2 mark 2, floating enable, move scratchpad
bindsym $mod+Shift+F2 mark --toggle 2
bindsym $mod+x swap container with mark x, unmark x
bindsym $mod+Control+x move window to mark x, unmark x
bindsym $mod+Shift+x mark --toggle x

# Scratchpad
bindsym $mod+z scratchpad show
bindsym $mod+Control+z floating enable, move scratchpad
bindsym $mod+Shift+z scratchpad show, scratchpad show
bindsym $mod+e [title="^Scratch - Emacs"] scratchpad show
bindsym $mod+Control+e [title="^Scratch - Terminal$"] scratchpad show
bindsym $mod+Shift+e [title="(Gmail|Slack|WhatsApp|Reddit)"] focus
bindsym $mod+Mod1+e [class="^(Spotify|Audacious)$"] scratchpad show
bindsym $mod+Shift+Control+e $nexec emacsclient -F '((title . "Scratch - Emacs"))' -a '' -c
bindsym $mod+Shift+Control+Mod1+e exec xfce4-terminal --title 'Scratch - Terminal'

# Control
bindsym $mod+r exec i3-input
bindsym $mod+Control+r reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+Control+Mod1+r exit
bindsym $mod+Control+q kill
bindsym $mod+Shift+q --release $nexec slock
bindsym $mod+Shift+Control+Mod1+q $nexec poweroff

# Rules
for_window [class="^Pavucontrol$"] floating enable
for_window [class="^Pulseaudio-equalizer-gtk$"] floating enable, border normal
for_window [class="^Blueberry.py$"] floating enable
for_window [class="^Gcolor3"] floating enable
for_window [class="^Gnome-font-viewer"] border normal
for_window [class="^Connman-gtk$"] floating enable
for_window [class="^Xmag$"] floating enable
for_window [class="^(Spotify|Audacious)$"] floating enable, resize set 1000 700, \
    move position center, move scratchpad, scratchpad show
for_window [title="^Htop$"] floating enable
for_window [title="^Dropbox Status$"] floating enable
for_window [title="^Scratch - Terminal$"] floating enable, move scratchpad
for_window [title="^Scratch - Emacs$"] floating enable, move scratchpad

# Startup
$nexec bar start
$nexec i3hacks
$nexec emacsclient -F '((title . "Scratch - Emacs"))' -a '' -c
$nexec xfce4-terminal --title 'Scratch - Terminal'

Logfile: https://logs.i3wm.org/logs/5729137540988928.bz2

- Linux Distribution & Version: Linux 4.20.10-arch1-1-ARCH 
- Are you using a compositor (e.g., xcompmgr or compton): compton, but disabling it changes nothing of the above.
@memeplex

This comment has been minimized.

Copy link
Author

memeplex commented Feb 22, 2019

Hey bot, I've added a log.

@i3 i3 deleted a comment from i3bot Mar 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.