WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)  (Read 5569 times)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« on: September 08, 2021, 07:38:12 AM »
Hi again..
I started opera-12 -fullscreen &
But it does not cover the whole screen. There are still spaces around it where you can see the desktop and wbar icons.
I'm using the stock TinyCorePure64. Only installed opera-12 on top.

When I tried to click opera from wbar, then choose page>fullscreen from the menu, also did the same.
There's no way I can make it to cover the whole screen.

Any help please???

This is screenshot in fullscreen mode.



This is screenshot not in fullscreen mode. The only differences is it has opera menu

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #1 on: September 08, 2021, 07:58:37 AM »
Hi pek
A couple of years ago I added a fullscreen function to FLWM. Try double clicking the windows title bar.
If you prefer using the keyboard, try  Ctrl-Alt-M

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #2 on: September 08, 2021, 08:10:16 AM »
Hi pek
A couple of years ago I added a fullscreen function to FLWM. Try double clicking the windows title bar.
If you prefer using the keyboard, try  Ctrl-Alt-M

Thank you Rich.
That works very well. Although it still shows the close and hide button, etc.

Is there a way to make FLWM start in fullscreen, when I run opera-12 -fullscreen &  ??
And is there any option to remove decorations? So it will look like true fullscreen as in TinyCore 32 bit version.
And when opera goes off from fullsreen, FLWM is decorated again.

This is true when I use Tinycore 32 bit and opera9.
I'm hoping to get the same effect in 64 bit, because some newer pc/macs will only boot into 64 bit.

Thank you.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #3 on: September 08, 2021, 08:42:05 AM »
Hi pek
That works very well. Although it still shows the close and hide button, etc. ...
That is by design. Double clicking the title bar allows you to toggle between fullscreen and original size. If the title bar
were hidden, you could never double click it to get back to the original size.

My guess is that Opera is sending the window manager a message to resize its window, but FLWM does not see the
message because it is not a fully compliant window manager. It might work with a more modern window manager.

I wrote a program that lets you start a program at a size and position of your choosing:
http://forum.tinycorelinux.net/index.php/topic,25125.0.html

You can use negative numbers for the XY coordinates to move the title bar and tabs off screen and make the width
and height big enough to hide anything else.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 723
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #4 on: September 08, 2021, 09:12:42 AM »
Tryed to help you and use the xdotool to maximize the screen, but failed.

With correct windowid:
That you can get with the correct pid number and under environ
Code: (bash) [Select]
pidof opera-12
1234
cat /proc/1234/environ
Look for WINDOWID=123456

Code: (bash) [Select]
xdotool windowsize 123456 100% 100%
Segmentation fault

:(

You may try to compile an newer version.


Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #5 on: September 08, 2021, 09:22:55 AM »
@Rich

Quote
My guess is that Opera is sending the window manager a message to resize its window, but FLWM does not see the message because it is not a fully compliant window manager. It might work with a more modern window manager.
Isn't the 32 bit version also FLWM?
Opera 9 works well / as expected with that. Possibly Opera-12 plays differently to FLWM then?

Quote
I wrote a program that lets you start a program at a size and position of your choosing:
http://forum.tinycorelinux.net/index.php/topic,25125.0.html
I tried Resize -p "opera-12 -f"
But it will not run. Instead giving
opera: Unknown argument: -f

What is the correct syntax?
Thanks.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #6 on: September 08, 2021, 09:43:42 AM »
Hi pek
Opera 9 probably resized its own window directly instead of asking the window manager to do it.

The error is from opera because it does not recognize that -f. I think you meant:
Code: [Select]
Resizer -p "opera-12" -fOnly options you wish to pass to Opera go inside the quotes. The  -f  option will not do what you want. It will make the
parent window full screen.

If you do something like this:
Code: [Select]
Resizer -p "opera-12" -f -x -13 -y -40 -w WIDTH -h HEIGHTReplace  WIDTH  and  HEIGHT  with values large enough to push the unwanted sections off screen.

If Opera first puts its window up and then initializes its size later on (like Firefox does) you may need to used the  -d
option so  Resizer  waits for Opera to finish before it resizes it.

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #7 on: September 08, 2021, 10:32:09 AM »
Thank you very much Rich..

Actually
Quote
Resizer -p "opera-12 -fullscreen" -f
is sufficient for me.

All good. Thank you very much..  :)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #8 on: September 08, 2021, 10:35:00 AM »
@patrikg

Thanks for the sugestion. I'm not quite understand that. But I tried and try to see what happens.

I tried to follow your example.
Quote
pidof opera-12
1234
I got 2020

Quote
cat /proc/1234/environ
Look for WINDOWID=123456
I can not find WINDOWID

This is what I get instead
Quote
.. edit: I can't past the result here. It gives internal server error when i tried.
But there's no WINDOWID

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 723
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #9 on: September 08, 2021, 11:54:18 AM »
You have to use your pid value like you see of the pidof program.
That was 2020 at the moment.
This value change every time you start the program.
pid=process identifier/program id

Code: (bash) [Select]
cat /proc/2020/environ

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #10 on: September 08, 2021, 11:56:38 AM »
Hi pek
...
Quote
Resizer -p "opera-12 -fullscreen" -f
is sufficient for me. ...
Thank you for trying that and reporting it worked. I had considered that option but figured the  "opera-12 -fullscreen"
option would interfere with how my program finds the applications window. Guess I was wrong. :-[

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #11 on: September 09, 2021, 05:37:15 AM »
Hi patrikg,
Sorry, I mean when I did
Code: (bash) [Select]
cat /proc/2020/environthere's no WINDOWID in the result.
There were WM_PID=1696 and XPID=1693

I tried both numbers
Code: [Select]
xdotool windowsize 1696 100% 100%
...and also get Segmentation fault

I don't know how to compile a newer version. So I guess I'll leave it like that for now.
I can still use the Resizer method anyway.

Thank you very much for trying to help  :)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #12 on: September 09, 2021, 05:41:26 AM »
Hi Rich,
Quote
...Guess I was wrong. :-[
I'm glad you were wrong on that.. ;)
That makes it easier for me to configure  ;D ;D Thanks..!!

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #13 on: October 23, 2021, 07:31:33 PM »
Hi pek
A couple of years ago I added a fullscreen function to FLWM. Try double clicking the windows title bar.
If you prefer using the keyboard, try  Ctrl-Alt-M

Rich - thank you for adding that function!  I find it very handy to use and even better when not running flwm-topside - but on the side.  Which makes it even easier to access.  Although ctrl-alt-m is very much in muscle-memory. :)

Kudos...

That's a UNIX book! - cool  -- Garth

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Opera-12 TinyCorePure64 weird Fullscreen (Not Full)
« Reply #14 on: October 23, 2021, 08:51:09 PM »
Hi PDP-8
I was in there adding an environmental variable to stop the window manager from moving the mouse cursor
every time a new window was opened. It's especially annoying if you go to the wbar to open 2 terminals and
an editor for example. A window opens and the file manager snatches the mouse cursor. You move the cursor
back to the wbar, click the Terminal icon again and the mouse cursor is once again moved from the wbar. I don't
like programs guessing where they think I want my cursor placed.

Anyway, while I was in there, I was able to add the double click window resize function:
http://forum.tinycorelinux.net/index.php/topic,22598.0.html