all repos — fluxbox @ 18de3a67dd27c82c5926ed1357593fcf707a5759

custom fork of the fluxbox windowmanager

pressed pixmap fix, we use old background pixmap if m_pressed_pm is null
fluxgen fluxgen
commit

18de3a67dd27c82c5926ed1357593fcf707a5759

parent

a25551769e136b1bfaa7fabda93bc9635716dd6e

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/FbTk/Button.ccsrc/FbTk/Button.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Button.cc,v 1.7 2003/05/07 11:35:22 fluxgen Exp $ +// $Id: Button.cc,v 1.8 2003/06/05 12:42:31 fluxgen Exp $ #include "Button.hh"

@@ -109,7 +109,8 @@ m_win.hide();

} void Button::buttonPressEvent(XButtonEvent &event) { - m_win.setBackgroundPixmap(m_pressed_pm); + if (m_pressed_pm != 0) + m_win.setBackgroundPixmap(m_pressed_pm); m_pressed = true; clear();