Re: Prevent windows off screen?
Miles <miles-Er2wc6mQ884+Mw1Q2xKbrQC/[email protected]> Fri, 9 Sep 2016 14:24:29 -0700
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CAMmAYo7Thp9oXPYoDaxq=AsuBuL3+PepOZgqZNYVv+OpgGKZMA@mail.gmail.com> |
interesting - it is true I've never totally "lost" a window. The problem I'm seeing is that when I unplug my monitor, everything moves to the laptop screen, but windows on the lower or right portion of the screen are 90% offscreen, and that large windows are now larger than the screen. On Fri, Sep 9, 2016 at 2:04 PM, Mikael Magnusson <[email protected]> wrote: > On Fri, Sep 9, 2016 at 10:46 PM, Miles <[email protected]> wrote: >> As I connect and disconnect external monitors and projectors, my >> windows become inaccessible, larger than the monitor, or partially offscreen >> >> Is there any way to have openbox automatically resize and/or translate >> windows to stay entirely on the screen? >> >> Thanks!. > > If you reconfigure your viewport with randr, then openbox will move > any offscreen windows offscreen. Merely unplugging a monitor won't > have any effect though. > Eg what I use (probably somewhat antiquated but you get the idea), > crton) > xrandr --fb 1680x2074 --output DVI-D-0 --pos 0x0 --mode 1280x1024 > --output DVI-I-1 --pos 0x1024 --mode 1680x1050 > ;; > crtoff) > xrandr --fb 1680x2074 --output DVI-D-0 --off --output DVI-I-1 --pos > 0x1024 --mode 1680x1050 > ;; > crtdisabled) > xrandr --fb 1680x1050 --output DVI-D-0 --off --output DVI-I-1 --pos > 0x0 --mode 1680x1050 > ;; > > Only the last of these would make openbox move any windows around, > because the actual server workspace gets smaller. > > -- > Mikael Magnusson > _______________________________________________ > openbox mailing list > [email protected] > http://icculus.org/mailman/listinfo/openbox _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox