LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2020, 01:41 PM   #1
thinkpadboi
LQ Newbie
 
Registered: Jun 2017
Location: USA
Distribution: Fedora
Posts: 23

Rep: Reputation: Disabled
Fullscreen spanning a program across 2+ monitors?


I'm now working from home indefinitely, and that means having to remote into work, which means having to deal with Citrix. I currently have Citrix installed in a podman container that I can ssh -X into and run remote desktop. The only problem is, I can't find a way to get the window to fullscreen across both of my monitors. I can drag / resize the window very close, but if it snaps or I try maximizing it, it will jump to fullscreen on one screen only. I am using Fedora 31 with Xfce and/or i3.

Ideally, what I think would be the best solution at this point would be lightdm / xfce running on vt1 and having Citrix run without a window manager and forced to span monitors on a separate vt. However, I don't have a good enough understanding of how X works to achieve this. It seems to also interfere with my X session on vt1 when I experiment with running X on other vt's at the same time.

How can I do this?
 
Old 03-21-2020, 06:28 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
The short answer is that I don't know if you can. The way you set stuff like that up is in /etc/X11/xorg.conf.d/, which supersedes the default stuff in /usr/share or wherever that is hidden.

So open 'man xorg.conf' on one terminal, and 'sudo <editor> /etc/X11/xorg.conf.d/20-video.conf' in another terminal, and draft the video section. Have one ServerLayout, and a Monitor, Device, & Screen section for each Monitor, card o/p & configuration you might use. When X boots, it feels around and configures whatever it finds. I think the sticking point may well be having one window spread across 2 screens. You may be able to do that this way: xterm (and I presume other programs) accept X & Y dimensions as options. So if you ran 'xterm -geometry 3840 1080' you might get it spread across 2 hdmni screens. Those xterm options are guesses, btw - check the man page. Then anything started in the xterm has it's size set.
 
Old 03-23-2020, 08:04 AM   #3
thinkpadboi
LQ Newbie
 
Registered: Jun 2017
Location: USA
Distribution: Fedora
Posts: 23

Original Poster
Rep: Reputation: Disabled
Interesting update... I found this reddit post where someone mentioned adding 'force-xinerama yes' and assigning a keyboard shortcut for 'fullscreen toggle global' to their i3 config. Without messing with Xorg conf files or force-xinerama, and just using a shortcut for 'fullscreen toggle global', I can get a terminal, Firefox, etc. to span both monitors. In that case, it has to be something about this particular window that is causing issues. Here's the xprop information from it. I wonder if it could be related to WM_SIZE_HINTS? Can I somehow force it to ignore those?

Can you explain what explicitly defining monitors in the Xorg conf files does, as opposed to letting them be set up dynamically?

Code:
_NET_WM_DESKTOP(CARDINAL) = 3
_NET_WM_STATE(ATOM) = 
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0
WM_CLASS(STRING) = "Remote Desktop Connection", "Wfica_Seamless"
WM_LOCALE_NAME(STRING) = "C"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified location: 0, 0
		program specified size: 1920 by 1080
WM_CLIENT_MACHINE(STRING) = "0f362e601c33"
WM_ICON_NAME(UTF8_STRING) = "[redacted] - Remote Desktop Connection"
WM_NAME(UTF8_STRING) = "[redacted] - Remote Desktop Connection"
_NET_WM_NAME(UTF8_STRING) = "[redacted] - Remote Desktop Connection"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x2a003a0
		bitmap id # of mask for icon: 0x2a0039e

Last edited by thinkpadboi; 03-23-2020 at 08:07 AM.
 
Old 03-24-2020, 05:22 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
X is good at interrogating the monitors and setting up a good safe mode.
When you have two or more monitors, defining them allows you to set things like:
  • A Virtual screen and which part of it they are.
  • Which is the Primary monitor
  • Options like rightOfScreen1
  • These can be different for different mo9nitors

At one stage I was plugging in a 1280x720 projector or 1920x1080 hdmi screen or nothing into my hdmi port. It was possible to overscan on the projector, but I didn't want that. There may have been a difference in refresh rates, but you can set that up. As it happened, I had them both on the right, but I could have had one of them them overlapping. Read the video section on 'man xorg.conf' (if they haven't renamed it) and look at the options.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting conky1.9.0 spanning multiple monitors Alpha90 Linux - Software 3 01-24-2016 02:03 PM
Xrandr spanning across 2 cards possible? kernel_geek Linux - Software 2 04-27-2011 09:23 AM
Games fullscreen is distorted, but video fullscreen is fine - older laptop xmrkite Linux - Software 7 07-20-2009 11:40 AM
FC10: Spanning Desktop Across Two Monitors zokken Fedora 4 12-17-2008 01:32 PM
spanning display across two monitors using xinerama selva_irtt Linux - Software 0 10-16-2007 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration