From 493fd295b0370194e09c73ef12f73b4b8b5254a4 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Mon, 11 Sep 2000 05:45:02 +0000 Subject: [PATCH] - button[1]->setBitmap(sticky_bits, 8, 8); + button[1]->setBitmap(sticky_bits, 10, 10); Fixes br 10156: On the desktop, I right-click the title bar of a window and select the KStep decoration. Then I click on the `+'' titlebar button to pin the window on all desks. The button turns empty. I click again to unpin the window, and, instead of showing the usual `+'', I get a corrupted button pixmap. svn path=/trunk/kdebase/kwin/; revision=63501 --- clients/kstep/nextclient.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/clients/kstep/nextclient.cpp b/clients/kstep/nextclient.cpp index 18a4fae349..cf57cfd40b 100644 --- a/clients/kstep/nextclient.cpp +++ b/clients/kstep/nextclient.cpp @@ -234,10 +234,7 @@ NextClient::NextClient( Workspace *ws, WId w, QWidget *parent, button[0] = new NextButton(this, "close", close_bits, 10, 10); button[1] = new NextButton(this, "sticky"); - if(isSticky()) - button[1]->setBitmap(unsticky_bits, 10, 10); - else - button[1]->setBitmap(sticky_bits, 10, 10); + stickyChange(isSticky()); button[2] = new NextButton(this, "iconify", iconify_bits, 10, 10); connect( button[0], SIGNAL( clicked() ), this, ( SLOT( closeWindow() ) ) ); @@ -331,9 +328,9 @@ void NextClient::mouseDoubleClickEvent( QMouseEvent * e ) void NextClient::stickyChange(bool on) { if(on) - button[1]->setBitmap(unsticky_bits, 8, 8); + button[1]->setBitmap(unsticky_bits, 10, 10); else - button[1]->setBitmap(sticky_bits, 8, 8); + button[1]->setBitmap(sticky_bits, 10, 10); }