|
|
|
@ -443,7 +443,7 @@ void KNote::saveConfig() const
|
|
|
|
|
m_config->setHeight( 0 );
|
|
|
|
|
m_config->setPosition( pos() );
|
|
|
|
|
|
|
|
|
|
NETWinInfo wm_client( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
NETWinInfo wm_client( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
if ( wm_client.desktop() == NETWinInfo::OnAllDesktops || wm_client.desktop() > 0 )
|
|
|
|
|
m_config->setDesktop( wm_client.desktop() );
|
|
|
|
|
|
|
|
|
@ -489,7 +489,7 @@ void KNote::setName( const TQString& name )
|
|
|
|
|
saveData();
|
|
|
|
|
|
|
|
|
|
// set the window's name for the taskbar entry to be more helpful (#58338)
|
|
|
|
|
NETWinInfo note_win( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
NETWinInfo note_win( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
note_win.setName( name.utf8() );
|
|
|
|
|
|
|
|
|
|
emit sigNameChanged();
|
|
|
|
@ -758,7 +758,7 @@ void KNote::slotUpdateReadOnly()
|
|
|
|
|
|
|
|
|
|
void KNote::slotClose()
|
|
|
|
|
{
|
|
|
|
|
NETWinInfo wm_client( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
NETWinInfo wm_client( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
if ( wm_client.desktop() == NETWinInfo::OnAllDesktops || wm_client.desktop() > 0 )
|
|
|
|
|
m_config->setDesktop( wm_client.desktop() );
|
|
|
|
|
|
|
|
|
@ -977,8 +977,8 @@ void KNote::slotUpdateShowInTaskbar()
|
|
|
|
|
|
|
|
|
|
void KNote::slotUpdateDesktopActions()
|
|
|
|
|
{
|
|
|
|
|
NETRootInfo wm_root( qt_xdisplay(), NET::NumberOfDesktops | NET::DesktopNames );
|
|
|
|
|
NETWinInfo wm_client( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
NETRootInfo wm_root( tqt_xdisplay(), NET::NumberOfDesktops | NET::DesktopNames );
|
|
|
|
|
NETWinInfo wm_client( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMDesktop );
|
|
|
|
|
|
|
|
|
|
TQStringList desktops;
|
|
|
|
|
desktops.append( i18n("&All Desktops") );
|
|
|
|
@ -1334,8 +1334,8 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev )
|
|
|
|
|
e->button() == Qt::LeftButton ? KWin::raiseWindow( winId() )
|
|
|
|
|
: KWin::lowerWindow( winId() );
|
|
|
|
|
|
|
|
|
|
XUngrabPointer( qt_xdisplay(), GET_QT_X_TIME() );
|
|
|
|
|
NETRootInfo wm_root( qt_xdisplay(), NET::WMMoveResize );
|
|
|
|
|
XUngrabPointer( tqt_xdisplay(), GET_QT_X_TIME() );
|
|
|
|
|
NETRootInfo wm_root( tqt_xdisplay(), NET::WMMoveResize );
|
|
|
|
|
wm_root.moveResizeRequest( winId(), e->globalX(), e->globalY(), NET::Move );
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -1343,7 +1343,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev )
|
|
|
|
|
#if KDE_IS_VERSION( 3, 5, 1 )
|
|
|
|
|
if ( ev->type() == TQEvent::MouseButtonRelease )
|
|
|
|
|
{
|
|
|
|
|
NETRootInfo wm_root( qt_xdisplay(), NET::WMMoveResize );
|
|
|
|
|
NETRootInfo wm_root( tqt_xdisplay(), NET::WMMoveResize );
|
|
|
|
|
wm_root.moveResizeRequest( winId(), e->globalX(), e->globalY(), NET::MoveResizeCancel );
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|