[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:02:07
Message-ID: 200710311102.07716.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


On Wednesday 31 October 2007, Lukas Appelhans wrote:
> Am Mittwoch, 31. Oktober 2007 16:43:53 schrieb Aaron J. Seigo:
> > On Wednesday 31 October 2007, Lukas Appelhans wrote:
> > > Ok, debug output is attached...
> > > It only creates one screen :-(
> >
> > is your Qt compiled with Xinerama support?
> >
> > can you try compiling the attached program with something like:
> >
> > gcc -o test_xin test_xin.c -lX11 -lXinerama -I/usr/include
> >
> > then run test_xin and see what it says? thanks =)
>
> "you have xinerama"

hm. interesting. new version attached. should be the last run at this =)

> Mmh, NVidia-Driver was updated at 21-10-2007... AFAIR it was running with
> the new one  at the beginning

hopefully it's not the driver.

-- 
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 (1 || 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