[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: can't find the output of kDebug()
From: Tsiapaliwkas Giorgos <terietor () gmail ! com>
Date: 2011-02-28 20:36:32
Message-ID: 201102282236.32406.terietor () gmail ! com
[Download RAW message or body]
hello,
a few hours ago i was playing/coding with kDebug().I wasn't able to see the
output of my kDebug() input.Then following is one of the 2 effects with which
i am studing these days.The one is the "login" and the other one the
"taskbarthumbernail.".
So here is my code,
TaskbarThumbnailEffect::TaskbarThumbnailEffect()
{
kDebug(1212) << "WWWWWWWWWWWWWWWWWWWWWWWWWW";
kDebug(1212)<<"WWWWWWWWWWWWWWWWWWWWWWWWWWW";
atom = XInternAtom(display(), "_KDE_WINDOW_PREVIEW", False);
effects->registerPropertyType(atom, true);
// TODO hackish way to announce support, make better after 4.0
unsigned char dummy = 0;
XChangeProperty(display(), rootWindow(), atom, atom, 8, PropModeReplace,
&dummy, 1);
}
TaskbarThumbnailEffect::~TaskbarThumbnailEffect()
{
kDebug(1212) << "WWWWWWWWWWWWWWWWWWWWWWWWW";
kDebug(1212)<<"WWWWWWWWWWWWWWWWWWWWWWWWWW";
XDeleteProperty(display(), rootWindow(), atom);
effects->registerPropertyType(atom, false);
}
void TaskbarThumbnailEffect::prePaintScreen(ScreenPrePaintData& data, int
time)
{
kDebug(1212)<<"preprerpeprerpreprepreprepreprperperperperpreprrperrperp[eprrepeprpr";
if (thumbnails.count() > 0) {
data.mask |=
PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS_WITHOUT_FULL_REPAINTS;
}
effects->prePaintScreen(data, time);
}
in order to debug kwin i was using in new text mode terminal the command,
( X vt10 :1 -terminate &); sleep 5; DISPLAY=:1 xterm
and after that i gave the command "startkde".
Also i tried to use qdebug but i was told to use kDebug.
Is kDebug better/more suitable than qDebug?
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic