[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: [Panel-devel] Latest changes screwed Xinerama setups
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2007-10-31 17:25:26
Message-ID: 200710311125.29999.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
On Wednesday 31 October 2007, Lukas Appelhans wrote:
> you have xinerama
> .. xinerama is active
> .. number of screens from XineramaQueryScreens is 2
> .. number of screens from ScreenCount is 1
>
> > > > is your Qt compiled with Xinerama support?
>
> That could it perhaps be, don't know, I changed from qt-copy to Qt 4.3.2
> from Arch-repo... don't know I will test...
ok, so XineramaQueryScreen is working, but ScreenCount isn't. that tells me
that your Qt is almost certainly compiled without xinerama support. please do
try qt-copy again and if that fixes it complain loudly to the maintainer of
that arch package.
oh, btw, there was a slight (though incosequential in your case) bug in the
last code i attached that i introduced purposefully to test it on my
non-xinerama machine .. for completeness (and in case others wish to test)
i've attached it here.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
["test_xin.c" (text/x-csrc)]
#include <stdio.h>
#include <X11/extensions/Xinerama.h>
#include <X11/Xlib.h>
int main(int argc, const char* argv)
{
Display *display;
int unused;
int use_xinerama;
int screenCount;
display = XOpenDisplay(":0");
use_xinerama = (XineramaQueryExtension(display, &unused, &unused) && XineramaIsActive(display));
if (use_xinerama) {
printf("you have xinerama\n");
XineramaQueryScreens(display, &screenCount);
if (XineramaIsActive(display)) {
printf(".. xinerama is active\n");
} else {
printf(".. xinerama is NOT active\n");
}
printf(".. number of screens from XineramaQueryScreens is %i\n", screenCount);
printf(".. number of screens from ScreenCount is %i\n", ScreenCount(display));
} else {
printf("single screen suckah!\n");
}
XCloseDisplay(display);
return 0;
}
[Attachment #8 (application/pgp-signature)]
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic