fluxbox compositing optimizations

pull/40/head
TomasM 2017-11-02 07:15:06 -04:00
parent aad4522327
commit c1cc0b983f
3 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
m_button_grab_y = y - frame().y() - frame().window().borderWidth(); m_button_grab_y = y - frame().y() - frame().window().borderWidth();
+ // If mouse clicked on the border, start window resize instead of move + // If mouse clicked on the border, start window resize instead of move
+ if (m_button_grab_x <= 0 || m_button_grab_y <= 0 || m_button_grab_x >= frame().window().width() + if (m_button_grab_x <= 0 || m_button_grab_y <= -4 || m_button_grab_x >= frame().window().width()
+ || m_button_grab_y >= frame().window().height() ) { + || m_button_grab_y >= frame().window().height() ) {
+ ReferenceCorner dir = getResizeDirection(m_button_grab_x,m_button_grab_y,EDGEORCORNERRESIZE,frame().window().borderWidth(),frame().window().borderWidth()); + ReferenceCorner dir = getResizeDirection(m_button_grab_x,m_button_grab_y,EDGEORCORNERRESIZE,frame().window().borderWidth(),frame().window().borderWidth());
+ startResizing(m_button_grab_x, m_button_grab_y, dir); + startResizing(m_button_grab_x, m_button_grab_y, dir);

View File

@ -1,3 +1,3 @@
xrdb -merge ~/.Xresources xrdb -merge ~/.Xresources
compton -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' & compton --sw-opti -e 0.9 --opacity-rule '70:WM_WINDOW_ROLE@:s *?= "fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' &
startfluxbox startfluxbox

View File

@ -8,7 +8,7 @@ background: fullscreen
background.pixmap: /usr/share/wallpapers/wp.jpg background.pixmap: /usr/share/wallpapers/wp.jpg
toolbar.justify: left toolbar.justify: left
toolbar.clock.justify: center toolbar.clock.justify: right
window.justify: center window.justify: center
menu.title.justify: center menu.title.justify: center
menu.frame.justify: left menu.frame.justify: left
@ -81,6 +81,7 @@ toolbar.iconbar.unfocused.textColor: white
toolbar.iconbar.unfocused.justify: left toolbar.iconbar.unfocused.justify: left
toolbar.button: flat solid toolbar.button: flat solid
toolbar.button.borderWidth: 3
toolbar.button.color: #333333 toolbar.button.color: #333333
toolbar.button.picColor: #61CA00 toolbar.button.picColor: #61CA00
toolbar.button.pressed: flat solid toolbar.button.pressed: flat solid