Bug 133644 - React on xrandr screencount changes
Summary: React on xrandr screencount changes
Status: RESOLVED DUPLICATE of bug 142860
Alias: None
Product: kde
Classification: I don't know
Component: xinerama (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 11:33 UTC by Gabriel Ambuehl
Modified: 2008-04-02 12:30 UTC (History)
0 users

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 Gabriel Ambuehl 2006-09-06 11:33:18 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Ubuntu Packages

I'm using Nvidia's TwinView on my laptop (which, as I understand it, presents itself as Xinerama to window managers [1]) and have defined two MetaModes, one that uses my external LCD and the built-in one, one that only uses the built-in one (for use while away from my desk). If I switch from one screen to two screen (using krandrtray), kwin will span fullscreen windows over both screens (happens especially when you maximize a window after the switch).

Restarting kwin by kwin --replace will give the expected result (i.e. fullscreen on the current screen) which suggests to me that kwin probably doesn't reload Xinerama data after a resolution switch?

[1] The desktop configuration applet at least lets me do everything like with pure Xinerama.
Comment 1 Gabriel Ambuehl 2006-09-06 13:57:49 UTC
This is possible related to http://bugs.kde.org/show_bug.cgi?id=131197, removing the displayconfigrc doesn't seem to help, though.
Comment 2 Lubos Lunak 2006-09-06 15:03:02 UTC
Please provide specific steps how to reproduce the problem. Which X.org version is that?

Comment 3 Gabriel Ambuehl 2006-09-06 15:12:48 UTC
That is Xorg 7.0 (as shipped with Kubuntu Dapper) using the current nvidia Binary Drivers.

Reproduction (the original way how it happend to me):
* Start Xorg in a TwinView Metamode using only one screen. 
* Then use XRandr to switch to two screens 
* try to maximize a window.
* reloading kwin (kwin --replace)  makes the issue go away

It also happened when switching to a single screen Metamode with XRandr, restarting kwin and switching back to a dual screen mode.
Comment 4 Marcus Better 2008-03-07 10:34:41 UTC
Oddly enough I got the same issue with KDE 4.0.2 (Debian experimental packages) today. I use xrandr, and changed the configuration from clone mode to dual-head after login. Running X.org 7.3.

"kwin --replace" makes the issue go away. I haven't experienced this with KDE 4.0.1 at all.

~$ xrandr -v
Server reports RandR version 1.2
~$ xrandr --verbose
Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 2304 x 1024
VGA-0 connected 1280x1024+1024+0 (0x57) normal (normal left inverted right x axis y axis) 376mm x 301mm
        Identifier: 0x54
        Timestamp:  76571
        Subpixel:   no subpixels
        Clones:
        CRTC:       1
        CRTCs:      0 1
        EDID_DATA:
                00ffffffffffff001e6dd34a38340200
                0b0f01036e261e78eaec50a5584a9a26
                215054a56b80314f454f614f81800101
                010101010101302a009851002a403070
                1300782d1100001e000000fd00384b1e
                530e000a202020202020000000fc004c
                3139353053510a2020202020000000fc
                000a2020202020202020202020200071
        load_detection: 0 (0x00000000) range:  (0,1)
  1280x1024 (0x57)  108.0MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1280x1024 (0x58)  135.0MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
  1280x1024 (0x59)  109.0MHz -HSync +VSync
        h: width  1280 start 1368 end 1496 total 1712 skew    0 clock   63.7KHz
        v: height 1024 start 1027 end 1034 total 1063           clock   59.9Hz
  1152x864 (0x5a)  108.0MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
        v: height  864 start  865 end  868 total  900           clock   75.0Hz
  1024x768 (0x5b)   82.0MHz -HSync +VSync
        h: width  1024 start 1088 end 1192 total 1360 skew    0 clock   60.3KHz
        v: height  768 start  771 end  775 total  805           clock   74.9Hz
  1024x768 (0x5c)   78.8MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
        v: height  768 start  769 end  772 total  800           clock   75.1Hz
  1024x768 (0x5d)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  832x624 (0x5e)   57.3MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock   49.7KHz
        v: height  624 start  625 end  628 total  667           clock   74.6Hz
  800x600 (0x5f)   49.5MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
  800x600 (0x60)   49.0MHz -HSync +VSync
        h: width   800 start  840 end  920 total 1040 skew    0 clock   47.1KHz
        v: height  600 start  603 end  607 total  629           clock   74.9Hz
  800x600 (0x61)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0x62)   31.5MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
  640x480 (0x63)   30.8MHz -HSync +VSync
        h: width   640 start  664 end  728 total  816 skew    0 clock   37.7KHz
        v: height  480 start  483 end  487 total  504           clock   74.8Hz
  640x480 (0x64)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   60.0Hz
  720x400 (0x65)   28.3MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
        v: height  400 start  412 end  414 total  449           clock   70.1Hz
LVDS connected 1024x768+0+0 (0x5d) normal (normal left inverted right x axis y axis) 304mm x 228mm
        Identifier: 0x55
        Timestamp:  76571
        Subpixel:   horizontal rgb
        Clones:
        CRTC:       0
        CRTCs:      0
        EDID_DATA:
                00ffffffffffff00320c000000000000
                000f0102801e17780a72b09657528728
                23505400000001010101010101010101
                01010101010164190040410026301888
                360030e4100000180000000000000000
                00000000000000000000000000fe004c
                475068696c6970734c43440a000000fe
                004c503135305830392d42324b3100dd
                scaler: full
        backlight: 255 (0x000000ff) range:  (0,255)
  1024x768 (0x5d)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x61)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0x66)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
S-video disconnected (normal left inverted right x axis y axis)
        Identifier: 0x56
        Timestamp:  76571
        Subpixel:   no subpixels
        Clones:
        CRTCs:      0 1
                tv_standard: ntsc
        tv_vertical_position: 0 (0x00000000) range:  (-5,5)
        tv_horizontal_position: 0 (0x00000000) range:  (-5,5)
        tv_horizontal_size: 0 (0x00000000) range:  (-5,5)
        load_detection: 0 (0x00000000) range:  (0,1)
Comment 5 Lubos Lunak 2008-03-09 15:46:55 UTC
This needs to be implemented in Qt.
Comment 6 Marcus Better 2008-03-12 13:55:31 UTC
Moreover, after logging in to KDE and switching to dual-head with "xrandr --output VGA-0 --right-of LVDS", kwin places new windows right in the middle of the virtual desktop, so that the left and right parts show up on different
displays. The same happens with the application switcher pop-up shown
on Alt-Tab. (KDE 4.0.2 on Debian.)

Debian bug report:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469269
Comment 7 Gudlaugur Johannesson 2008-04-01 19:50:59 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Lubos Lunak 2008-04-02 12:30:46 UTC

*** This bug has been marked as a duplicate of 142860 ***