You are not logged in.

#1 2013-07-17 16:14:56

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Multiple focused windows in X11

I have two monitors, and I want to have tow widows both getting focus, but only one of them getting the inputs. For example a full screen youtube window on one monitor, and a texteditor on the other, that actually gets the keyboard input. Now I'm using Xnest, so that the "fake" focused window is in an unfocused xnest window. For example youtube has focus in the nested xsession, but the xnest window is not focused in the original xsession. Is it possible to have something similar without xnest?

Last edited by matyilona200 (2013-07-17 16:15:28)

Offline

#2 2013-07-17 16:35:49

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Multiple focused windows in X11

No, that is impossible. If you need flash videos in an inactive fullscreen window, you might want to try one of these alternatives:
- PopVideo https://addons.mozilla.org/de/firefox/addon/popvideo/
- SMPlayer can play videos from youtube, just give it the url.
- grab video url and open it in your favorite video player. (I use FlashGot, add smplayer as a custom "download manager" and use it as default for media downloads. This results in calling smplayer with the video URL as stream and not a download)
- fullscreenhack https://github.com/ali1234/fullscreenhack

Last edited by progandy (2013-07-17 16:37:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-07-17 17:26:12

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: Multiple focused windows in X11

Thank you, I'll try them.

Offline

#4 2013-07-17 18:25:12

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Multiple focused windows in X11

I forgot that Xorg has multi-pointer support. Maybe you can do something with this? Create two pointers, then create keyboard shortcuts to switch the real keyboard and pointer between the both pointers. I don't know how this will work if the window manager does not support it, though.
https://wiki.archlinux.org/index.php/Multi-pointer_X

Last edited by progandy (2013-07-17 18:26:01)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2013-07-17 19:50:53

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Multiple focused windows in X11

Alright, I'm super curious... What is the purpose of having two windows with focus? yikes

Offline

#6 2013-07-17 19:59:53

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: Multiple focused windows in X11

One purpose was youtube, but that can be solved. The other main reason is minecraft, when it's not focused, it pauses, and my stuff wont grow.

Offline

#7 2020-01-15 03:32:12

Techtiger255
Member
Registered: 2020-01-15
Posts: 1

Re: Multiple focused windows in X11

You could always just put the window that needs to be fooled inside a VM (copy Minecraft files, start inside VM, etc)... or somehow modify your window manager to tell all the windows that they are focused 24/7 (preferably in a togglable state with keybindings set) just some ideas... I know I'm a **few** years late...

Offline

#8 2020-01-15 03:58:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Multiple focused windows in X11

Techtiger255 wrote:

I know I'm a **few** years late...

Yep.

Closing


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB