| Summary: | KSnapshot won't take screenshots of narrow windows | ||
|---|---|---|---|
| Product: | [Unmaintained] ksnapshot | Reporter: | Dima Ryazanov <dima> |
| Component: | general | Assignee: | Richard Moore <rich> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aacid, adrian, samjnaa |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/ksnapshot/b3fa5727d56f93d14ecba8f7ed2f969dcb1d9961 | Version Fixed/Implemented In: | 4.10.0 |
| Sentry Crash Report: | |||
|
Description
Dima Ryazanov
2006-10-22 20:05:34 UTC
Works fine here (SVN just pre 3.5.5 on freebsd) I've been able to reproduce this with xclock, but not with anything else. What other apps show this behaviour? I ran into this problem when I was using GLUT, and created a very small window.
But, here's a Qt example:
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello", 0 );
hello.resize( 70, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}
Same problem.
Now try this, though:
#include <qapplication.h>
#include <qpushbutton.h>
#include <qvbox.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QVBox box;
box.resize( 70, 60 );
QPushButton hello1( "Hello1", &box );
QPushButton hello2( "Hello2", &box );
a.setMainWidget( &box );
box.show();
return a.exec();
}
You can take a screenshot of the whole window and the second button - but not the first button!
So it seems that the first widget is causing problems... And in the first example and in xclock, there is only one widget. Well, I actually have no idea how widgets and X work, so it's just a guess.
Another example. 1. Add a new panel (right-click on the main panel, or whatever; Panel Menu->Add New Panel->Panel). 2. Move it to the left of the screen. 3. Take a screenshot of it. Doesn't work! 4. Right-click, "Configure Panel...", make it shorter than 100%. An arrow appears at the bottom. (Though now you can make it 100% again - the arrow stays. Bug?) 5. Take a screenshot of the panel. It works now! 6. Take a screenshot of the arrow... Doesn't work. i can reproduce #4 but all the rest work just fine here with 3.5.6 on Kubuntu Edgy I’ve just opened a review request for a patch. For more details, see https://git.reviewboard.kde.org/r/107555/ Git commit b3fa5727d56f93d14ecba8f7ed2f969dcb1d9961 by Albert Astals Cid, on behalf of Adrián Chaves Fernández. Committed on 14/01/2013 at 22:25. Pushed by aacid into branch 'KDE/4.10'. take screenshots of windows no matter how narrow they are REVIEW: 107555 M +1 -1 windowgrabber.cpp http://commits.kde.org/ksnapshot/b3fa5727d56f93d14ecba8f7ed2f969dcb1d9961 |