Howto: minimize/alt-tab Nexuiz in fullscreen (Linux)

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators


  • I've been playing Nexuiz for a couple of months now in its native full-screen mode, and never was able to minimize it or use any other windows without closing the game completely. Finally, I decided to find a way to at least minimize it somehow. So here's what I've come up with.

    The idea is to *disable* the native fullscreen mode, so Nexuiz will run in its own window, and make use of the fullscreen mode that is built into your window manager (Metacity for Gnome, kwin for KDE, etc). I have only tried this in KDE, but it should also work for Gnome and, perhaps, other environments (someone said it also worked in openbox). The steps are:
    1. Open Nexuiz, go to Settings -> Video, uncheck "Full screen", click "Apply"

    2. In the configuration dialog for your window manager, assign a keyboard shortcut to expand the current window to full-screen.
    In KDE/Ubuntu: System Settings -> Keyboard & Mouse -> Keyboard Shortcuts, in the Global Shortcuts tab, line "Make Window Fullscreen".
    In Gnome: follow this explanation: http://infinity-unbound.blogspot.com/20 ... in_15.html

    3. A catch (at least with kwin, but probably also with other environments): kwin is only able to make a window full-screen, if it's a "normal window". The problem is -- Nexuiz presents itself as a non-normal window (dialog, perhaps).

    To change this, in KDE:
    a) run Nexuiz in windowed mode
    b) press shift-esc. This will display a text console and also allow your mouse to escape from the Nexuiz' window.
    c) right-click the window title, Advanced -> Special Application Settings
    d) Window tab -> click Detect button
    e) in the dialog that appears, choose "Use window class (whole application)", click OK
    f) Workarounds tab -> turn on the "Window type" checkbox, choose "Force" from the drop-down next to it and "Normal window" from the second drop-down
    g) click OK

    I have no idea how to do this in Gnome (or is it even required), but it should also be possible this way or another (perhaps through a small external program).

    4. If you'd like Nexuiz to always start in this full-screen mode, you can do this from the same Special Application Settings dialog, Geometry tab. Check the "Fullscreen" checkbox and choose "Apply Initially" from the drop-down.

    5. In order to minimize Nexuiz or switch to other windows, you must always open its command prompt first (only when the prompt is open, Nexuiz will allow you to move your mouse outside the Nexuiz' window or trigger WM-specific keyboard shortcuts). You can do this with the tilde (~) button in-game or with shift-esc in the game's menus.

    After opening the command prompt, if you want to minimize Nexuiz, you can either use you WM's minimization keyboard shortcut or press the shortcut to make it non-fullscreen again and then minimize it with the mouse. If you want to switch to other windows, you can just use alt-tab (or whatever is configured for this in your WM).


    EDIT:
    6. A limitation: you won't be able to run Nexuiz at resolutions other than the resolution of your desktop. If you want that, native full-screen is probably your only way.

    That's all, have fun =)
    NF
    Newbie
     
    Posts: 3
    Joined: Sun Sep 21, 2008 6:30 pm

Sun Sep 21, 2008 8:34 pm

  • While it's a bit buggy, an alternative solution is:

    Code: Select all
    bind F9 "+fullscreen" // Toggle fullscreen
    alias +fullscreen ""
    alias -fullscreen "fullscreen_off"
    alias fullscreen_off "vid_fullscreen 0 ; vid_restart ; alias -fullscreen fullscreen_on"
    alias fullscreen_on "vid_fullscreen 1 ; vid_restart ; alias -fullscreen fullscreen_off"
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Sun Sep 21, 2008 9:43 pm

Sun Sep 21, 2008 11:50 pm

  • KadaverJack wrote:try http://hem.bredband.net/b400150/
    It's using a kind of dirty hack, but works well...

    Tried this before righting the post. This doesn't work for me at all. I end up with a screen full of garbage.
    NF
    Newbie
     
    Posts: 3
    Joined: Sun Sep 21, 2008 6:30 pm

Mon Sep 22, 2008 8:13 am

  • Interesting.But how does this affect performance?
    "One should strive to achieve; not sit in bitter regret."
    WE ARE NEXUIZ.
    Image
    Image
    User avatar
    C.Brutail
    Laidback mapper
     
    Posts: 2357
    Joined: Tue Feb 28, 2006 7:26 pm
    Location: Ironforge

Mon Sep 22, 2008 5:44 pm

  • C.Brutail wrote:Interesting.But how does this affect performance?

    Doesn't affect, AFAICT.
    NF
    Newbie
     
    Posts: 3
    Joined: Sun Sep 21, 2008 6:30 pm

Tue Sep 23, 2008 12:57 pm

  • Hey NF, I was the Openbox guy you talked to in the game. Glad to see you got it working after all. I didn't have to change any window properties, though, and xprop claims the Nexuiz "window state" is "Normal", so it might indeed be some kwin-specific issue.
    User avatar
    parasti
    Alien
     
    Posts: 110
    Joined: Sun May 11, 2008 11:32 pm
    Location: On the walls and the ceiling

Wed Sep 24, 2008 9:17 pm

  • Run Nexuiz on separate screen. Easiest way and the best imo. You can even kill main session to get more resources for Nexuiz.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Wed Sep 24, 2008 9:28 pm

  • btw does anybody know how to fix a screenshot, running SUSE :?:
    uncomfortable
    random
    mean
    embarrassing
    limited
    User avatar
    Urmel
    Forum addon
     
    Posts: 1744
    Joined: Fri Mar 03, 2006 10:06 am
    Location: Offline

Wed Sep 24, 2008 9:31 pm

  • Does not f12 work or what?
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Thu Sep 25, 2008 12:00 am

  • Alien wrote:Run Nexuiz on separate screen. Easiest way and the best imo. You can even kill main session to get more resources for Nexuiz.


    Hmm... if you're talking about running a second x for Nexuiz, when I tried this, Nexuiz would crash whenever I went back to my main x session.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Thu Sep 25, 2008 4:03 am

  • Works for me wirh 2.3. Maybe smth in dp. Need to try newer version.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Thu Sep 25, 2008 8:25 pm

  • Alien wrote:Does not f12 work or what?


    Well, I didn't mean "in nexuiz" but generally(the you can press the print button in windows, copy it with strg-C and paste it into a paint file). Not for my own interest. Utze hasn't been able to find out how to do that, so I thought I'd just ask all my linuish forum friends how to do that :)
    uncomfortable
    random
    mean
    embarrassing
    limited
    User avatar
    Urmel
    Forum addon
     
    Posts: 1744
    Joined: Fri Mar 03, 2006 10:06 am
    Location: Offline

Fri Sep 26, 2008 4:56 am

  • Actually it should work in Suse. Maybe you've closed some background deamon which grabs keyboard inputs and searches for prt scr.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest