Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(bspwm): remove monitor focus command#986

Merged
patrick96 merged 1 commit into
polybar:masterfrom
NBonaparte:fix-bspwm-scroll
Jun 6, 2018
Merged

fix(bspwm): remove monitor focus command#986
patrick96 merged 1 commit into
polybar:masterfrom
NBonaparte:fix-bspwm-scroll

Conversation

@NBonaparte

Copy link
Copy Markdown
Member

I think #981 is an issue, but I need someone else to confirm it (both the problem and the fix).

Fixes #981.

@NBonaparte NBonaparte requested a review from patrick96 February 1, 2018 06:26
@NBonaparte

Copy link
Copy Markdown
Member Author

bump

@patrick96

Copy link
Copy Markdown
Member

I'll try to reproduce this issue on my end, once I get some time. May not be this week, as I'm going on vacation from wednesday through sunday

@patrick96

Copy link
Copy Markdown
Member

Got some time to try to reproduce this. Here is what I got:

First of all, I assumed you had pin-workspaces = false, when you experienced the bug.

With polybar 3.1.0, the following happens: Scrolling through the workspaces, only scrolls through the ones on the monitor which the bar runs on and when it gets to a boundary, it focuses the workspace on the other monitor.
The question here is, what should be the expected behaviour? Should it only scroll through the workspaces on the monitor the bar is on, or should it scroll through all the workspaces in order?

I think the behaviour should be that it scrolls through all the workspaces it displays, this is what your patch does and it almost works properly for me.
If pin-workspaces is true, it scrolls through the workspaces on the selected monitor and not the workspaces on the monitor the bar runs on. This is quite unintuitive, I think also here it should scroll through the desktops on the bar monitor.

@patrick96

Copy link
Copy Markdown
Member

Did you do a force push here?

@NBonaparte

Copy link
Copy Markdown
Member Author

Probably.

@patrick96 patrick96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Couldn't find anything going wrong during my testing. Scrolling now scrolls through the desktops that are displayed by polybar (as would be intuitive)

@patrick96 patrick96 merged commit 067aac1 into polybar:master Jun 6, 2018
@NBonaparte NBonaparte deleted the fix-bspwm-scroll branch June 6, 2018 16:49
patrick96 added a commit that referenced this pull request Jul 23, 2018
Breaking Changes:

* `0 < label-NAME-maxlen < 3` will now throw an exception and disable the containing module, if ellipsis is enabled for that label. (#1198)

Changelog:

Deprecations:
* `internal/volume` is now called `internal/alsa` (#967)
* temperature: The `%temperature%` is deprecated in favor of `%temperature-c%`(#897)
* mpd: `icon-repeatone` is deprecated in favor of `icon-single` (#1295), see #1279

Features:
* feat(mpd): Add support for icon-consume (#861)
* feat(bspwm): Add workspace separator (#942) 
* feat(i3): Add workspace separator (#938), see #929
* feat(build): Make polybar build on FreeBSD (#931, polybar/xpp#8), see #239
* feat(volume): Add pulseaudio backend (#779)
* feat(script): Add %pid% token for tail commands (#934)
* feat(temp): Add temperature tokens without unit (#897)
* feat(memory): Add memory used/free ramp (#1038), see #1037
* feat(memory): Add swap tokens (#1018) 
* feat(net): Add unknown-as-up option (#1077), see #457
* feat(config): Support fractional size and offset (#972), see #953
* feat(xwindow): Add label-empty (#1136)
* feat(battery): Add animation-discharging (analog to animation-charging) (#1190)
* feat(config): Support pixel offset for bar size and offset values (#1224)
* feat(mpd): Add `%album-artist%` token (#1263)
* feat(net): Add local_ip6 token (#1239), see #1234
* feat(net): Add nl80211 support (#1009), see #277

Fixes:
* fix(mpd): Wrong elapsed time when after standby (#921), see #915
* fix(config): Wrong min, maxlen when using the same token multiple times (#974), see #971
* fix(battery): use power_now correctly (#958), see #928
* fix(mpd): Crash when mpd isn't running (#983), see #979
* fix(xworkspaces): Respect 'enable-scroll' (#1002)
* fix(xbacklight): Respect 'enable-scroll' (#1014)
* fix(build): support xcb-proto >=1.13 (polybar/xpp#11), see #973
* fix(mpd): Respect MPD_HOST env variable (#1025), see #1007
* fix(i3): Reconnect i3 IPC socket on restart/error (#1099), see #762
* fix(cursor): Occasional crash on mouseover (#1124), see #1117
* fix(net): Mark 'not connected' on querying failure (#1171), see #1163
* fix(gcc): Fix -Wstringop-truncation warning (#1216, polybar/i3ipcpp#7), see #1215
* fix(builder): Don't truncate colors with same channels (#1217), see #1183
* fix(bspwm): Consistent behavior when scrolling through multiple desktops (#986), see #981
* fix(builder): Respect label-ellipsis option (#1198), see #1194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bspwm scrolling through desktops on multiple monitors

2 participants