[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)
Current Behavior
Currently when using the fixed ratio resize (Mod+Shift+RMB) of a floating window, the ratio is calculated WITH the title bar. This results in the window getting taller when growing & getting horizontal black bars on the videos. This is not a serious issue as it can be circumvented by players that force the aspect ratio of the content to the window (like mpv) or using floating windows without title bar or even borders.
Expected Behavior
The ratio of the window resizing should ignore the title bar & keep the content aspect ratio fixed.
Reproduction Instructions
Open a video in firefox & use the pop out player(picture-in-picture) mode. Toggle the border & title bar on for the player. Resize in fixed ratio mode (by holding Mod+Shift when resizing).
#bindsym to bindcode table from top left on keyboard
#1~0 ----> 10~19
#q~p ----> 24~33
#a~l ----> 38~46
#z~m ---> 52~58
## kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+x kill
bindsym --release button2 kill
bindsym --whole-window $mod+button2 kill
## change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym --whole-window $mod+button4 focus right
bindsym --whole-window $mod+button5 focus left
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
## move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# cycle through workspaces
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Right workspace next
bindsym --whole-window $mod+control+button4 workspace prev
bindsym --whole-window $mod+control+button5 workspace next
workspace_auto_back_and_forth yes
# switch to workspace
bindcode $mod+10 workspace number $ws1
bindcode $mod+11 workspace number $ws2
bindcode $mod+12 workspace number $ws3
bindcode $mod+13 workspace number $ws4
bindcode $mod+14 workspace number $ws5
bindcode $mod+15 workspace number $ws6
bindcode $mod+16 workspace number $ws7
bindcode $mod+17 workspace number $ws8
bindcode $mod+18 workspace number $ws9
bindcode $mod+19 workspace number $ws10
# move focused container to workspace & switch
bindcode $mod+Control+10 move container to workspace number $ws1 ; workspace number $ws1
bindcode $mod+Control+11 move container to workspace number $ws2 ; workspace number $ws2
bindcode $mod+Control+12 move container to workspace number $ws3 ; workspace number $ws3
bindcode $mod+Control+13 move container to workspace number $ws4 ; workspace number $ws4
bindcode $mod+Control+14 move container to workspace number $ws5 ; workspace number $ws5
bindcode $mod+Control+15 move container to workspace number $ws6 ; workspace number $ws6
bindcode $mod+Control+16 move container to workspace number $ws7 ; workspace number $ws7
bindcode $mod+Control+17 move container to workspace number $ws8 ; workspace number $ws8
bindcode $mod+Control+18 move container to workspace number $ws9 ; workspace number $ws9
bindcode $mod+Control+19 move container to workspace number $ws10; workspace number $ws10
# move focused container to workspace
bindcode $mod+Shift+10 move container to workspace number $ws1
bindcode $mod+Shift+11 move container to workspace number $ws2
bindcode $mod+Shift+12 move container to workspace number $ws3
bindcode $mod+Shift+13 move container to workspace number $ws4
bindcode $mod+Shift+14 move container to workspace number $ws5
bindcode $mod+Shift+15 move container to workspace number $ws6
bindcode $mod+Shift+16 move container to workspace number $ws7
bindcode $mod+Shift+17 move container to workspace number $ws8
bindcode $mod+Shift+18 move container to workspace number $ws9
bindcode $mod+Shift+19 move container to workspace number $ws10
# move focused container to next workspace and switch
bindsym $mod+Mod1+Right move container workspace next; workspace next
bindsym $mod+Mod1+Left move container workspace prev; workspace prev
bindcode $mod+Mod1+38 move container workspace prev; workspace prev
bindcode $mod+Mod1+40 move container workspace next; workspace next
#bindsym $mod+Mod1+button4 move container workspace next; workspace next
#bindsym $mod+Mod1+button5 move container workspace prev; workspace prev
bindsym $mod+Mod1+button4 exec .config/i3/i3MoveNext.sh 1
bindsym $mod+Mod1+button5 exec .config/i3/i3MoveNext.sh -1
# focus the parent & child container
bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
# split in horizontal & vertical orientation
bindsym $mod+h split h
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+t layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+z floating toggle
bindsym $mod+button3 floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# toggle border
bindsym $mod+Control+b border none
bindsym $mod+b border toggle
# windows alt+tab
bindsym $mod+Tab workspace back_and_forth
bindsym Mod1+Tab workspace back_and_forth
# move to last workspace
bindsym $mod+Control+Tab move container to workspace back_and_forth; workspace back_and_forth
theme test.conf include file
#test.conf
#https://thomashunter.name/i3-configurator/
# Fonts
#Font for window titles. Will also be used by the bar unless a different font
#is used in the bar {} block below.
#font pango:monospace Bold Condensed 9
#This font is widely installed, provides lots of unicode glyphs, right-to-left
#text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:DejaVu Sans Bold Mono 8
# screen Lock
bindsym $mod+control+l exec i3lock -i .config/i3/lock.png --nofork -p win -e -f
# Window Colours
#
client.focused #000088 #000088 #ffffff #2e9ef4 #000088
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #333333 #ffffff #292d2e #333333
client.urgent #900000 #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
# Dmenu colours
bindsym $mod+d exec j4-dmenu-desktop --dmenu="dmenu -i -fn 'DejaVu Sans-10' -nf '#FFFFFF' -nb '#000000' -sb '#2EBB75' -sf '#000000'"
#bindsym $mod+n exec "i3-dmenu-desktop -nf '#FFFFFF' -nb '#000000' -sb '#2EBB75' -sf '#000000' -fn 'monospace-10'"
#bindsym $mod+m exec j4-dmenu-desktop
Logfile URL:
- Linux Distribution & Version: Arch linux, latest of both normal(5.15.2) & lts(5.10.79) kernels , Problem existed since around 5.13ish (My install date of i3)
- Are you using a compositor (e.g., xcompmgr or compton): problem exist with and without xcompmgr
I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)
I'm submitting a…
Current Behavior
Currently when using the fixed ratio resize (Mod+Shift+RMB) of a floating window, the ratio is calculated WITH the title bar. This results in the window getting taller when growing & getting horizontal black bars on the videos. This is not a serious issue as it can be circumvented by players that force the aspect ratio of the content to the window (like mpv) or using floating windows without title bar or even borders.
Expected Behavior
The ratio of the window resizing should ignore the title bar & keep the content aspect ratio fixed.
Reproduction Instructions
Open a video in firefox & use the pop out player(picture-in-picture) mode. Toggle the border & title bar on for the player. Resize in fixed ratio mode (by holding Mod+Shift when resizing).
Environment
Output of
i3 --moreversion 2>&-
:Main config file
Modes.conf include file
start.conf include file
manip.conf include file
theme test.conf include file