You are not logged in.

#1 2013-11-08 05:43:22

fengshaun
Member
Registered: 2013-07-12
Posts: 26

bspwm: moving floating windows has huge delay

Hi all,

I set out to try bspwm and I think it's really nice, except that when I try to move floating windows with super+left click drag (why is it not alt+left click?).  There's a huge delay between when I move the mouse and when the window moves.  How do I fix this issue, if it can be fixed?

Thank you.

Offline

#2 2013-11-08 11:06:44

robstwd
Member
From: Brisbane
Registered: 2010-10-31
Posts: 32

Re: bspwm: moving floating windows has huge delay

fengshaun wrote:

.... when I try to move floating windows with super+left click drag (why is it not alt+left click?).  ....

I don't know about the main issue, but regarding the keybinding comment "why is it not alt+left click?" - assuming you use the companion keybinding tool sxhkd, the default keybinding in sxhkdrc can be changed to whatever you choose. For example, the default keybinding for window move:

super + button{1-3}
    bspc pointer -g {move,resize_side,resize_corner}

can just be changed to:

alt + button{1-3}
    bspc pointer -g {move,resize_side,resize_corner}

Reload the sxhkd configuration files with super + Escape

Last edited by robstwd (2013-11-08 11:28:11)

Offline

#3 2013-11-08 14:34:33

mah0
Member
Registered: 2011-04-21
Posts: 47

Re: bspwm: moving floating windows has huge delay

Same issue. It only occurs when using mouse with high polling rate. In my case it's Razer Abyssus (1000Hz).
Here's how it looks when switching modes between 125Hz and 1000Hz: video

Offline

#4 2013-11-08 16:13:50

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: bspwm: moving floating windows has huge delay

@robstwd: thanks for the tip!

@mah0: yup, looks *exactly* like that!  I have the Zowie FK, so I can only change the polling rate by unplugging/plugging the mouse sad

Offline

#5 2013-11-08 17:32:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: bspwm: moving floating windows has huge delay

@fengshaun, there is the module parameter mousepoll for usbhid... maybe that is what you are looking for?

$ modinfo -p usbhid 

Offline

#6 2013-11-09 03:53:33

robstwd
Member
From: Brisbane
Registered: 2010-10-31
Posts: 32

Re: bspwm: moving floating windows has huge delay

Great thanks @WonderWoofy & @mah0... the nudge to look at module parameter mousepoll for usbhid was what I needed to fix this.

Following the wiki page on mouse polling rate, I added this into /etc/modprobe.d/modprobe.conf

options usbhid mousepoll=2

and updated the polling rate without rebooting, to see the effect:

# modprobe -r usbhid && modprobe usbhid

Playing around with the mousepoll value as I had no idea what was an ideal setting - I tweaked it so far to 30, which has had the best effect on window move smoothness. However, not sure yet if that extreme has any unwanted effects - on quick review it seems not to, but I will see in due course, I suppose.

thanks again smile

Offline

#7 2013-11-09 04:22:48

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: bspwm: moving floating windows has huge delay

thanks @WonderWoofy!  I'll see how I can make a compromise between window manager's smoothness and mouse jitter in games (lowering polling rate too much results in inconsistent movement in games).

Offline

#8 2013-12-27 10:25:03

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm: moving floating windows has huge delay

I've added an option to sxhkd to specify the maximum frequency for motion events.


gh · da · ds

Offline

Board footer

Powered by FluxBB