f***@ofb.net
2018-09-20 18:34:38 UTC
Hello,
I'm a bit stumped by something I encountered this morning.
I revisited an old image-viewer, qiv, which I haven't used in years.
It brought up a floating window in i3. However, I have the following
line in ~/.i3/config and I haven't seen any floating windows since I
added it:
for_window [class=".*"] floating disable
These are the only other lines in my config which have the string
"float", they all work:
floating_modifier $mod
bindsym $mod+Ctrl+space floating toggle
bindsym $mod+space focus mode_toggle
Here is the output of xwininfo, as you can see the class InputOutput
matches the regex ".*" :)
xwininfo: Window id: 0x2000003 "qiv: amenhotep//home/frederik/pkg-tmp/R/R-svn/file.png (480x480) 0.0s 100% [1/1] b0/c0/g0 (-)"
Absolute upper-left X: 400
Absolute upper-left Y: 160
Relative upper-left X: 2
Relative upper-left Y: 0
Width: 480
Height: 480
Depth: 24
Visual: 0x20
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x22 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +400+160 -400+160 -400-160 +400-160
-geometry 480x480+400+160
Any ideas what might be happening? I know that I'm editing the right
config file, because I can comment out the "floating disable" line and
floating windows come up again.
Of course, I should probably be using an image viewer which supports
resizing if I want to use it with i3... maybe that's the problem?
Thanks,
Frederick
I'm a bit stumped by something I encountered this morning.
I revisited an old image-viewer, qiv, which I haven't used in years.
It brought up a floating window in i3. However, I have the following
line in ~/.i3/config and I haven't seen any floating windows since I
added it:
for_window [class=".*"] floating disable
These are the only other lines in my config which have the string
"float", they all work:
floating_modifier $mod
bindsym $mod+Ctrl+space floating toggle
bindsym $mod+space focus mode_toggle
Here is the output of xwininfo, as you can see the class InputOutput
matches the regex ".*" :)
xwininfo: Window id: 0x2000003 "qiv: amenhotep//home/frederik/pkg-tmp/R/R-svn/file.png (480x480) 0.0s 100% [1/1] b0/c0/g0 (-)"
Absolute upper-left X: 400
Absolute upper-left Y: 160
Relative upper-left X: 2
Relative upper-left Y: 0
Width: 480
Height: 480
Depth: 24
Visual: 0x20
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x22 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +400+160 -400+160 -400-160 +400-160
-geometry 480x480+400+160
Any ideas what might be happening? I know that I'm editing the right
config file, because I can comment out the "floating disable" line and
floating windows come up again.
Of course, I should probably be using an image viewer which supports
resizing if I want to use it with i3... maybe that's the problem?
Thanks,
Frederick