I have this situation:
There are one monitor pluged in my notebook, and nvidia twinview is configured. The external monitor is bigger than the notebook monitor. The openbox is running with gnome (openbox --replace). when I place one gnomepanel on the botton edge of the notebook screen (the smaller screen), and I maximize one window at this screen, the window dont maximizes to fit all desktop, but only fit 70% of the screen. If the gnome-panel is placed to any other edge of this monitor, or of the external monitor, there arent problems with the maximized windows.
Here is my xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "alt-intl"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "TouchPadOff" "2"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "MaxTapTime" "120"
Option "MaxTapMove" "150"
Option "VertTwoFingerScroll" "true"
Option "HorizTwoFingerScroll" "true"
Option "VertEdgeScroll" "false"
Option "HorizEdgeScroll" "false"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "Emulate3Buttons" "false"
Option "SHMConfig" "true"
Option "PalmDetect" "1"
Option "PalmMinWidth" "10"
Option "PalmMinZ" "100"
Option "LeftEdge" "1330"
Option "BottonEdge" "4809"
Option "FingerHigh" "33"
Option "FingerLow" "20"
Option "EmulateTwoFingerMinZ" "90"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "AllowGLXWithComposite" "True"
Option "RenderAccel" "True"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "nvidia-auto-select +1280+0, DFP: 1280x800 +0+0; DFP: 1280x800 +0+0, CRT: 1280x1024 +1280+0; DFP: 1280x800 +0+0, CRT: 1024x768 +1280+0, TV: 720x480 +2304+0; DFP: 1280x800 +0+0; CRT: 800x600 +0+0; TV: 720x480; DFP: 1280x800 +0+0, CRT: 1024x768 +1280+0; DFP: 1280x800 +0+0, TV: 720x480 +1280+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Module"
Load "glx"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "Synaptics Touchpad"
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
Created attachment 2026[details]
"works for me" patch
I encountered what seems to be a similar problem. I found that the attached patch works to fix the problems with twinview (or any dual-head system).
Please let me know if I can do anything to help track this down further.
I would have also provided a git:// url, but it appears that the public openbox url is down, and so I could not checkout the code.
(In reply to comment #2)
> Created an attachment (id=2026) [details]
> "works for me" patch
>
> I encountered what seems to be a similar problem. I found that the attached
> patch works to fix the problems with twinview (or any dual-head system).
>
> Please let me know if I can do anything to help track this down further.
>
> I would have also provided a git:// url, but it appears that the public openbox
> url is down, and so I could not checkout the code.
I've tried this patch on 3.4.8_rc1, it seemes did nothing, and the bug still there.
if The patch only works on 3.4.7?
here is the screenshoot when the bug appear
http://img116.imageshack.us/img116/4375/200812301610401026x760swh8.png
thx
Sorry for the misunderstanding. From reading your first post I thought you and I were perhaps experiencing the same thing. You can see the problem I am having <a href="http://files.robescriva.com/before.png">here</a>.
I think that the two could be related. My patch is against the 3.4.7.2 tarball. I found that the calculation of the position of struts was off by one pixel, and so the windows would not automatically expand into the area it believed the panel occupied.
I'm not an Openbox developer, but would be interested in tracking this bug down as I think it has the same root cause as the bug I wrote a patch for.
What it was in my case is the panel (strut) was extended by one pixel to the right onto the display. In my previous picture, I showed that it was maximizing to 24 pixels short of the top.
If your dual head setup is such that the bottom panel on the left display were to be positioned at the position 30% from the bottom, it could make the right display act as if there is a strut that takes up 30% of the screen on the right.
You attached your Xorg configs. Would you look at the resolutions of both monitors and provide me with that? Also, it might be helpful to know what OS your running so I can recreate your configuration.
I have this situation: There are one monitor pluged in my notebook, and nvidia twinview is configured. The external monitor is bigger than the notebook monitor. The openbox is running with gnome (openbox --replace). when I place one gnomepanel on the botton edge of the notebook screen (the smaller screen), and I maximize one window at this screen, the window dont maximizes to fit all desktop, but only fit 70% of the screen. If the gnome-panel is placed to any other edge of this monitor, or of the external monitor, there arent problems with the maximized windows. Here is my xorg.conf # xorg.conf (X.Org X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "alt-intl" EndSection Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "TouchPadOff" "2" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "MaxTapTime" "120" Option "MaxTapMove" "150" Option "VertTwoFingerScroll" "true" Option "HorizTwoFingerScroll" "true" Option "VertEdgeScroll" "false" Option "HorizEdgeScroll" "false" Option "TapButton1" "1" Option "TapButton2" "3" Option "TapButton3" "2" Option "Emulate3Buttons" "false" Option "SHMConfig" "true" Option "PalmDetect" "1" Option "PalmMinWidth" "10" Option "PalmMinZ" "100" Option "LeftEdge" "1330" Option "BottonEdge" "4809" Option "FingerHigh" "33" Option "FingerLow" "20" Option "EmulateTwoFingerMinZ" "90" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" EndSection Section "Device" Identifier "Configured Video Device" Driver "nvidia" Option "AddARGBVisuals" "True" Option "AddARGBGLXVisuals" "True" Option "NoLogo" "True" Option "AllowGLXWithComposite" "True" Option "RenderAccel" "True" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" DefaultDepth 24 Option "TwinView" "1" Option "TwinViewXineramaInfoOrder" "DFP-0" Option "metamodes" "nvidia-auto-select +1280+0, DFP: 1280x800 +0+0; DFP: 1280x800 +0+0, CRT: 1280x1024 +1280+0; DFP: 1280x800 +0+0, CRT: 1024x768 +1280+0, TV: 720x480 +2304+0; DFP: 1280x800 +0+0; CRT: 800x600 +0+0; TV: 720x480; DFP: 1280x800 +0+0, CRT: 1024x768 +1280+0; DFP: 1280x800 +0+0, TV: 720x480 +1280+0" SubSection "Display" Depth 24 EndSubSection EndSection Section "Module" Load "glx" EndSection Section "ServerLayout" Identifier "Default Layout" screen "Default Screen" Inputdevice "Generic Keyboard" Inputdevice "Configured Mouse" Inputdevice "Synaptics Touchpad" EndSection Section "Extensions" Option "Composite" "Enable" Option "RENDER" "Enable" EndSectionCreated attachment 2026 [details] "works for me" patch I encountered what seems to be a similar problem. I found that the attached patch works to fix the problems with twinview (or any dual-head system). Please let me know if I can do anything to help track this down further. I would have also provided a git:// url, but it appears that the public openbox url is down, and so I could not checkout the code.My xorg.conf here: # xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg # Section "Files" FontPath "/usr/share/fonts/TTF/" # FontPath "/usr/share/fonts/100dpi" # FontPath "/usr/share/fonts/util" # FontPath "/usr/share/fonts/kochi-substitute" # FontPath "/usr/share/fonts/dejavu" # FontPath "/usr/share/fonts/Speedo" # FontPath "/usr/share/fonts/default" # FontPath "/usr/share/fonts/cyrillic" # FontPath "/usr/share/fonts/75dpi" # FontPath "/usr/share/fonts/ttf-bitstream-vera" # FontPath "/usr/share/fonts/corefonts" # FontPath "/usr/share/fonts/baekmuk-fonts" # FontPath "/usr/share/fonts/lyx" # FontPath "/usr/share/fonts/Type1" # FontPath "/usr/share/fonts/arphicfonts" # FontPath "/usr/share/fonts/OTF" # FontPath "/usr/share/fonts/misc" EndSection Section "ServerFlags" #Option "AIGLX" "off" Option "AIGLX" "true" EndSection Section "Module" load "dri" EndSection Section "Monitor" Identifier "Integrated LCD" Option "DPMS" EndSection Section "Monitor" Identifier "External VGA" Option "RightOf" "Integrated LCD" Option "DPMS" EndSection Section "Device" Identifier "Generic Video Card" Driver "radeon" # # accelration Option "AGPMode" "8" Option "EnablePageFlip" "on" Option "RenderAccel" "on" Option "AccelMethod" "EXA" # or XXA Option "DynamicClocks" "on" Option "DRI" "true" # Color Tiling Option "ColorTiling" "on" Option "Monitor-VGA-0" "External VGA" Option "Monitor-LVDS" "Integrated LCD" EndSection Section "Screen" Identifier "Default Screen" Device "Generic Video Card" Monitor "Integrated LCD" DefaultDepth 24 SubSection "Display" Modes "1280x1024" "1024x768" Virtual 2304 1024 EndSubSection EndSection Section "Extensions" #Option "Composite" "Disable" Option "Composite" "enable" EndSection Section "DRI" Group 0 Mode 0666 EndSection ==============xorg.conf end============ And the output of xrandr command: $ xrandr Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 2304 x 1024 VGA-0 connected 1280x1024+1024+0 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0*+ 75.0 60.0 60.0* 1280x960 60.0 1152x864 75.0 75.0 1024x768 75.1 75.0 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 75.0 72.8 75.0 60.0 59.9 720x400 70.1 DVI-0 disconnected (normal left inverted right x axis y axis) LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0*+ 60.0 800x600 60.3 59.9 640x480 59.9 59.4 S-video disconnected (normal left inverted right x axis y axis) ===========xrandr output end=========== I use gentoo, ~x86, openbox-3.4.8_rc1