Author Topic: [Solved] Window resize and xfce4-panel bugs  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
[Solved] Window resize and xfce4-panel bugs
« on: 03. February 2016, 08:45:58 »
after today's update 2 bugs appeared:
1) can't resize windows vertically using keyboard, horizontal resizing works fine however
2) I'm using xfce4-panel, and now it doesn't recognize windows closing correctly or something. even after I close window I can see it in my taskbar and pager till I change workspace or open new window (even another application). this happens only if it was only window on a workspace.

attaching my sxhkd config and screenshot of a bug, in case if needed.




« Last Edit: 04. February 2016, 13:22:29 by TenShiN »

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #1 on: 03. February 2016, 12:20:44 »
Thanks for reporting!
Number 1 is bug my script (bspwm_resize.sh, provided by package bspwm-scripts), will be fixed in next update.
Number 2 seems to be bspwm bug, you should file a bug report in here: https://github.com/baskerville/bspwm

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #2 on: 03. February 2016, 13:22:49 »
Btw, could you post output of
Code: [Select]
cat /usr/bin/bspwm_resize.sh?

There is a chance you can quick fix the issue for yourself by replacing the contents of that file with this:

Code: [Select]
#!/bin/bash

size=${2:-'20'}
dir=$1

# Find current window mode
is_tiled() {
bspc query -T -n | grep -q '"state":"tiled"'
}
# If the window is floating, move it
if ! is_tiled; then
#only parse input if window is floating,tiled windows accept input as is
        case "$dir" in
  west) switch="-w"
  sign="-"
        ;;
  east) switch="-w"
          sign="+"
        ;;
  north) switch="-h"
          sign="-"
        ;;
  *) switch="-h"
      sign="+"
      ;;
  esac
 xdo resize ${switch} ${sign}${size}

# Otherwise, window is tiled: switch with window in given direction
else
     case "$dir" in
  west) bspc node @west -r -$size || bspc node @east -r -20
        ;;
  east) bspc node @west -r +$size || bspc node @east -r +20
        ;;
  north) bspc node @south -r +$size || bspc node @south -r -20
        ;;
  *) bspc node @south -r +$size || bspc node @south -r -20
      ;;
  esac
fi

Also, a guess: This issue with resize happens in left side of the screen?

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #3 on: 03. February 2016, 13:35:42 »
thanks, but I just fixed it myself before I read this :D

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #4 on: 03. February 2016, 13:38:51 »
also, you still have errors in code, you forgot to change @south to @north at the ends of last lines.
this is bug free one in case someone needs it:

Code: [Select]
#!/bin/bash

size=${2:-'20'}
dir=$1

# Find current window mode
is_tiled() {
bspc query -T -n | grep -q '"state":"tiled"'
}
# If the window is floating, move it
if ! is_tiled; then
#only parse input if window is floating,tiled windows accept input as is
        case "$dir" in
                west) switch="-w"
                sign="-"
                ;;
                east) switch="-w"
                sign="+"
                ;;
                north) switch="-h"
                sign="-"
                ;;
                south) switch="-h"
                sign="+"
                ;;
                esac
 xdo resize ${switch} ${sign}${size}

# Otherwise, window is tiled: switch with window in given direction
else
     case "$dir" in
                west) bspc node @west -r -$size || bspc node @east -r -20
                ;;
                east) bspc node @west -r +$size || bspc node @east -r +20
                ;;
                north) bspc node @south -r -$size || bspc node @north -r -20
                ;;
                south) bspc node @south -r +$size || bspc node @north -r +20
                ;;
                esac
fi
« Last Edit: 03. February 2016, 13:48:07 by TenShiN »

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #5 on: 03. February 2016, 13:42:28 »
Thanks!

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #6 on: 04. February 2016, 04:16:18 »
Okay, bspwm-scripts are now updated in github and pkgbuilds are soon arriving on unstable, if not already there. Thanks again for your help!

Also, I would like to point out that you setup looks cool.

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #7 on: 04. February 2016, 06:43:14 »
thank you for a wonderful distro.
this is my full setup if you are interested. if my bug report will stay unanswered, probably I'll have to try mate's panel, which I don't like, because it have more dependencies.










« Last Edit: 04. February 2016, 10:56:44 by TenShiN »

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Window resize and xfce4-panel bugs
« Reply #8 on: 04. February 2016, 12:14:27 »
good news! I found a workaround for the panel bug. I figured out that it glitches only when there is nothing to focus, so I thought if it would be able to focus panel, it will work properly, so I added a simple rule and everything works like before now.
Code: [Select]
bspc rule -a Xfce4-panel -o manage=true border=false
« Last Edit: 04. February 2016, 12:37:46 by TenShiN »

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: [Solved] Window resize and xfce4-panel bugs
« Reply #9 on: 04. February 2016, 14:18:08 »
That is excellent news!