Author Topic: Unwanted fullscreen toggling  (Read 1819 times)

WigglesMcMuffin

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Unwanted fullscreen toggling
« on: August 17, 2011, 08:05:12 am »
I currently run an Arch box, with Compiz as my WM. I used to use a Vanilla Gnome 2 Fedora 14 box instead which worked fine. Now, however, whenever I click the game moves from fullscreen to windowed mode, so the entire content shifts back and forth each click, it also requires I know where the button, object, link, etc will be after it has shifted, which makes things more difficult. I'm hoping it isn't WM related, or distro related really. If anyone has some sort of help, or suggestion they could offer, that would be great. Oh, just to clarify, I tried running "$ planeshift -fs" and it crashes instantly... so that wasn't the 'simple fix' I was looking for.

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Unwanted fullscreen toggling
« Reply #1 on: August 17, 2011, 08:23:48 am »
it looks definitely like a compiz bug/issue. We don't manage window movement and full screen is a request to x, and compiz can interfere with it.

WigglesMcMuffin

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #2 on: August 17, 2011, 08:36:56 am »
Darn! It's weird, cause it doesn't do it to any of the other games that have fullscreen/window capabilities... and I can't force it fullscreen with Compiz either. I guess I'll just have to set up an alt. environment for PlaneShift.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #3 on: August 17, 2011, 08:45:41 am »
We don't recommend fullscreen mode anyway. PlaneShift used to be unstable when switching out of fullscreen to other applications. We recommend near-fullscreen custom window dimensions instead.

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Talad

  • Administrator
  • Hydlaa Notable
  • *
  • Posts: 822
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #4 on: August 17, 2011, 10:00:07 am »
Ligh, I disagree on your recommendation, fullscreen mode is usually preferred because the video card is then dedicated to run ps, also it handles better different screen resolutions. Inside a vmware or emulation I agree it's risky.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #5 on: August 17, 2011, 10:30:59 am »
Well, my opinion is based on the experience many people made during the times of versions 0.3 through 0.5 that switching from full-screen PlaneShift to another application made PlaneShift crash (it could even crash in windowed mode on minimizing and restoring, but very rarely). That was certainly related to flaws in CrystalSpace. If those flaws are fixed today, my remark is now invalid. But I never dared to try fullscreen again... setting up a near-fullscreen window dimension is perfectly suitable for me, and app-switching (Alt+Tab) works reliably in this configuration.

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Unwanted fullscreen toggling
« Reply #6 on: August 18, 2011, 04:35:19 am »
full screen mode in x.org doesn't allow alt+tab switching so that's not an issue

Gilrond

  • Hydlaa Notable
  • *
  • Posts: 764
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #7 on: August 18, 2011, 09:08:03 am »
I can't even run in fullscreen on Linux without first setting the resolution manually to match one configured for PS (because my desktop resolution is higher). I.e. PS just crashes if I don't change resolution before launch.

So I had to write a wrapper script in a following manner:

launch_pshift_client.sh
Code: [Select]
xrandr -s 11
/opt/Games/PlaneShift/psclient
xrandr -s 0

Where screen 0 corresponds to my desktop resolution, and screen 11 to one that matches how PS is configured.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #8 on: August 18, 2011, 10:45:47 am »
You can edit ~/.PlaneShift/planeshift.cfg and define Video.ScreenHeight, Video.ScreenWidth, Video.AspectRatio and Video.ScreenDepth to match your desktop resolution if you need custom values.

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Gilrond

  • Hydlaa Notable
  • *
  • Posts: 764
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #9 on: August 18, 2011, 06:25:35 pm »
No, I specifically needed lower res to avoid too much lag.

WigglesMcMuffin

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: Unwanted fullscreen toggling
« Reply #10 on: August 19, 2011, 07:02:04 am »
This just occurred to me... Devilspie? I haven't tried it, but I figure it might work right? Cause it works as a go between with your WM and your Composite Manager. Just a thought. Anyway, I just set up my .xinitrc for having 2 DEs, and it works great in Openbox (thought I have to get carried away, or I'll have a laundry list of DEs set up by October  :lol:).

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Unwanted fullscreen toggling
« Reply #11 on: August 19, 2011, 10:25:14 am »
yes cs doesn't support x.org resolution switching. Could still pose problems as xrand is not always working right.