- 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
This commit is contained in:
parent
480d78944d
commit
493fd295b0
1 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue