Bug 76635 - Image Display Window is created but fails in some windowmanagers
Summary: Image Display Window is created but fails in some windowmanagers
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kuickshow
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Carsten Pfeiffer
URL:
Keywords:
: 79291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-03 11:04 UTC by sylvanus_urban
Modified: 2015-02-06 12:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sylvanus_urban 2004-03-03 11:04:39 UTC
Version:           0.8.6 (using KDE KDE 3.2.0)
Installed from:    SuSE RPMs
Compiler:          kde 2.3 > 20040204 
OS:          Linux

In Windowmaker / FVM / Fluxbox etc, Opening an image in the display window causes an error

kdecore (KWin): WARNING: Pass NET::WMGeometry to KWin::windowInfo()

Window is incorrectly drawn (tiny top-left in my case) and when resized is filled black. Clicking pgup or pgdown to load a new image does not clear the problem - remains black. Means kuickshow only works for me on KDE / Gnome

In Gnome or KDE the window is correctly drawn and displays the image but error is still generated when kuickshow is run from the command line.

Not sure whats happening here but presumably its an issue with the WM_ class messages that some windowmanagers are interpreting incorrectly?

Great app by the way - thank you
Comment 1 Lubos Lunak 2004-03-04 14:52:40 UTC
The warning has been already fixed, and seems to be unrelated.
Comment 2 Kristopher Baker 2004-03-15 01:16:59 UTC
I have the same issue ... works fine in kde ... but when i switch to blackbox all i get is a small window about 3-4 pix's wide ... when run from an xterm in kde i get no errors ... when i run from commandline in blackbox i get the following:

QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
kded: WARNING: KGenericFactory: instance requested but no instance name passed to the constructor!
kded: WARNING: KGenericFactory: instance requested but no instance name passed to the constructor!


... this was not an issue till i switched from kde 3.1.x to 3.2.x

mine is a compiled ver of kuickshow - i run gentoo
Comment 3 Lubos Lunak 2004-07-27 11:24:33 UTC
*** Bug 79291 has been marked as a duplicate of this bug. ***
Comment 4 Lubos Lunak 2004-07-27 11:26:52 UTC
CVS commit by lunakl: 

Don't report (0,0) as workarea size if the wm is not netwm-compliant.
CCMAIL: 76635-done@bugs.kde.org


  M +3 -1      kwinmodule.cpp   1.65


--- kdelibs/kdecore/kwinmodule.cpp  #1.64:1.65
@@ -318,4 +318,6 @@ QRect KWinModule::workArea( int desktop 
         return QApplication::desktop()->geometry();
     NETRect r = d->workArea( desk );
+    if( r.size.width <= 0 || r.size.height <= 0 ) // not set
+        return QApplication::desktop()->geometry();
     return QRect( r.pos.x, r.pos.y, r.size.width, r.size.height );
 }


Comment 5 Hackeron 2004-07-31 14:55:04 UTC
Doesnt fix much. Yes now the behaviour of displaying maximized image is slightly improved so almost useable, but not quite.

Image still maximizes wrong, and maximizes to full screen, *NOT* to window size as in kde/gnome. Please fix!
Comment 6 Hackeron 2004-07-31 15:05:51 UTC
Also, image first shows up on the left side of the screen, then it is moved to center, it should be generated from center to begin with. So its not useable at all.

And it doesnt maximize properly as mentioned above.

Also, guess what, the bug that was fixed earlier is back, when switching to full screen, image disappears and you just see black until you restart kuickshow. So this patch should be reverted, or kuickshow fixed.

So now xprop shows:
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 0, 0
                program specified location: 0, 0
                user specified size: 1024 by 768
                program specified size: 1024 by 768
                window gravity: NorthWest

So 1024x768 instead of my resolution 1280x768, and it should really be the window size, not desktop size.
Comment 7 Hackeron 2004-07-31 15:16:03 UTC
PS, other programs like kwrite/konqueror show this in xprop:

WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified size: 405 by 248
                program specified size: 405 by 248
                program specified minimum size: 200 by 200
                window gravity: NorthWest

So seems kuickshow is fairly broken. Doesnt it make more sense to make it behave like most (if not all) other qt/kde programs?
Comment 8 Lubos Lunak 2004-08-03 14:25:01 UTC
The only problem I see is that when returning from fullscreen mode the window doesn't restore its geometry but keeps the same size like when it was fullscreen. This will be fixed in next Qt version. Other than that, Kuickshow works for me in WindowMaker.
Comment 9 Hackeron 2004-08-03 14:42:07 UTC
Try on ion2 or ion3 -- not useable at all.. Gwenview works fine however, but lacks some of the features of kuickshow :(
Comment 10 Lubos Lunak 2004-08-03 15:19:09 UTC
With Ion it still doesn't seem to work.
Comment 11 Michał Kosmulski 2004-10-11 22:38:57 UTC
It also seems that kuickshow doesn't work over remote X connections (via ssh -X), even if ssh is invoked from within a running KDE session - the image window is just solid black. I haven't tested with KDE 3.3 yet, but for 3.2.3 this behavior was still there.
Comment 12 Gilhad 2004-11-12 18:34:09 UTC
On Gentoo/fluxbox I had this problem with 3.2.3 version, now i updated to 3.3.1 and it is able to show pictures in fullscreen/window, but often it uses wrong sized window when opening it. going to fullscreen/window and back fixes this problem, but is annoying ...
Comment 13 Christoph Feck 2015-02-06 12:29:44 UTC
Thanks for your bug report or feature request.

The Kuickshow application is no longer maintained, and all open tickets are now closed.
See also http://websvn.kde.org/?view=revision&revision=1383834