summaryrefslogtreecommitdiffstats
path: root/tdeui/kdetrayproxy
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:14:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:14:46 -0600
commit90a4df90811f0f978ae768939d8567f737e4c553 (patch)
tree057a536138b44495fc3aa26050c159fc6d3ef2ae /tdeui/kdetrayproxy
parent4fb897b216c41c13f128c71bcc66f60e2dc601c4 (diff)
downloadtdelibs-90a4df90811f0f978ae768939d8567f737e4c553.tar.gz
tdelibs-90a4df90811f0f978ae768939d8567f737e4c553.zip
Rename additional global functions and variables for tqt3
Diffstat (limited to 'tdeui/kdetrayproxy')
-rw-r--r--tdeui/kdetrayproxy/kdetrayproxy.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tdeui/kdetrayproxy/kdetrayproxy.cpp b/tdeui/kdetrayproxy/kdetrayproxy.cpp
index 7cb621bd8..c6302a3cc 100644
--- a/tdeui/kdetrayproxy/kdetrayproxy.cpp
+++ b/tdeui/kdetrayproxy/kdetrayproxy.cpp
@@ -45,12 +45,12 @@ KDETrayProxy::KDETrayProxy()
Atom KDETrayProxy::makeSelectionAtom()
{
- return XInternAtom( qt_xdisplay(), "_NET_SYSTEM_TRAY_S" + TQCString().setNum( qt_xscreen()), False );
+ return XInternAtom( tqt_xdisplay(), "_NET_SYSTEM_TRAY_S" + TQCString().setNum( tqt_xscreen()), False );
}
void KDETrayProxy::windowAdded( WId w )
{
- NETWinInfo ni( qt_xdisplay(), w, qt_xrootwin(), NET::WMKDESystemTrayWinFor );
+ NETWinInfo ni( tqt_xdisplay(), w, tqt_xrootwin(), NET::WMKDESystemTrayWinFor );
WId trayWinFor = ni.kdeSystemTrayWinFor();
if ( !trayWinFor ) // not a KDE tray window
return;
@@ -93,7 +93,7 @@ bool KDETrayProxy::x11Event( XEvent* e )
}
if( e->type == ReparentNotify && tray_windows.contains( e->xreparent.window ))
{
- if( e->xreparent.parent == qt_xrootwin())
+ if( e->xreparent.parent == tqt_xrootwin())
{
if( !docked_windows.contains( e->xreparent.window ) || e->xreparent.serial >= docked_windows[ e->xreparent.window ] )
{
@@ -114,7 +114,7 @@ bool KDETrayProxy::x11Event( XEvent* e )
if( docked_windows.contains( e->xunmap.window ) && e->xunmap.serial >= docked_windows[ e->xunmap.window ] )
{
// kdDebug() << "Window unmapped:" << e->xunmap.window << endl;
- XReparentWindow( qt_xdisplay(), e->xunmap.window, qt_xrootwin(), 0, 0 );
+ XReparentWindow( tqt_xdisplay(), e->xunmap.window, tqt_xrootwin(), 0, 0 );
// ReparentNotify will take care of the rest
}
}
@@ -124,21 +124,21 @@ bool KDETrayProxy::x11Event( XEvent* e )
void KDETrayProxy::dockWindow( Window w, Window owner )
{
// kdDebug() << "Docking " << w << " into " << owner << endl;
- docked_windows[ w ] = XNextRequest( qt_xdisplay());
- static Atom prop = XInternAtom( qt_xdisplay(), "_XEMBED_INFO", False );
+ docked_windows[ w ] = XNextRequest( tqt_xdisplay());
+ static Atom prop = XInternAtom( tqt_xdisplay(), "_XEMBED_INFO", False );
long data[ 2 ] = { 0, 1 };
- XChangeProperty( qt_xdisplay(), w, prop, prop, 32, PropModeReplace, (unsigned char*)data, 2 );
+ XChangeProperty( tqt_xdisplay(), w, prop, prop, 32, PropModeReplace, (unsigned char*)data, 2 );
XSizeHints hints;
hints.flags = PMinSize | PMaxSize;
hints.min_width = 24;
hints.max_width = 24;
hints.min_height = 24;
hints.max_height = 24;
- XSetWMNormalHints( qt_xdisplay(), w, &hints );
+ XSetWMNormalHints( tqt_xdisplay(), w, &hints );
// kxerrorhandler ?
XEvent ev;
memset(&ev, 0, sizeof( ev ));
- static Atom atom = XInternAtom( qt_xdisplay(), "_NET_SYSTEM_TRAY_OPCODE", False );
+ static Atom atom = XInternAtom( tqt_xdisplay(), "_NET_SYSTEM_TRAY_OPCODE", False );
ev.xclient.type = ClientMessage;
ev.xclient.window = owner;
ev.xclient.message_type = atom;
@@ -148,20 +148,20 @@ void KDETrayProxy::dockWindow( Window w, Window owner )
ev.xclient.data.l[ 2 ] = w;
ev.xclient.data.l[ 3 ] = 0; // unused
ev.xclient.data.l[ 4 ] = 0; // unused
- XSendEvent( qt_xdisplay(), owner, False, NoEventMask, &ev );
+ XSendEvent( tqt_xdisplay(), owner, False, NoEventMask, &ev );
}
void KDETrayProxy::withdrawWindow( Window w )
{
- XWithdrawWindow( qt_xdisplay(), w, qt_xscreen());
- static Atom wm_state = XInternAtom( qt_xdisplay(), "WM_STATE", False );
+ XWithdrawWindow( tqt_xdisplay(), w, tqt_xscreen());
+ static Atom wm_state = XInternAtom( tqt_xdisplay(), "WM_STATE", False );
for(;;)
{
Atom type;
int format;
unsigned long length, after;
unsigned char *data;
- int r = XGetWindowProperty( qt_xdisplay(), w, wm_state, 0, 2,
+ int r = XGetWindowProperty( tqt_xdisplay(), w, wm_state, 0, 2,
False, AnyPropertyType, &type, &format,
&length, &after, &data );
bool withdrawn = true;