xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
1.03k stars 87 forks source link

statusbar script interacts with lower-right corner window resize on XFCE/Linux #63

Closed Lalarian closed 2 years ago

Lalarian commented 3 years ago

Hello again!

As you now know, I am using Waterfox on Linux. Precisely it's Waterfox G3.0.2 based on Gecko 78.6.0. The OS is Manjaro Linux, with XFCE desktop.

As the scripts now are generally running (with the contents of the fx-folder-archive residing in '/usr/lib/firefox' on Manjaro), there's one problem left, that's probably related to the desktop (window manager):

With the Statusbar script installed (which is working great!), the bottom right corner for resizing the Browser's window changes it behaviour, to actually move the upper left corner of the browser's window, when you drag it. The lower right corner just twitches around and always resets to it's former position while dragging.

I can make a video if required. Installing and configuring a screen grabber and such it would take me some time of course.

Thank you in advance! :+1:

Lalarian commented 3 years ago

I found a solution/workaround: I removed the resize element from the script, by deleting the lines:

    let resizerContainer = _uc.createElement(document, 'toolbaritem', {id: 'resizer-container'});
    let resizer = _uc.createElement(document, 'resizer');
    resizerContainer.appendChild(resizer);
    win.statusbar.node.appendChild(resizerContainer);

Maybe this should be the default for Linux, as it looked wrong and didn't work right anways.

Lalarian commented 3 years ago

I found a solution/workaround: I removed the resize element from the script, by deleting the lines:

    let resizerContainer = _uc.createElement(document, 'toolbaritem', {id: 'resizer-container'});
    let resizer = _uc.createElement(document, 'resizer');
    resizerContainer.appendChild(resizer);
    win.statusbar.node.appendChild(resizerContainer);

Maybe this should be the default for Linux, as it looked wrong and didn't work right anyways.

Bildschirmfoto_2020-12-28_10-50-47

xiaoxiaoflood commented 3 years ago

I'll keep this open until I can test on Linux.

Pale Moon also has statusbar with resizer at lower right, maybe I should try it on Linux to se how it works.

P.S.: your Linux looks like Win 98. :P

Lalarian commented 3 years ago

Oh, right xD I am so used to this, that I always forget it might confuse people. Originally tt should be more like Win 2K, but you can't always get what you want.. It's the Chicago95 "Mod" https://github.com/grassmunk/Chicago95 with a Win2K skin. IMHO the most productive GUI ever made for an OS. I can't get along with flat design, nearly invisible grey sliders on same shade backgrounds, lots of wasted screen estate, and invisible corners so small, that you need a minute for finding the right spot - so basically any 'modern' Ui ;) Yes, in this context, the corner resize element of course makes sense, as we don't have to fiddle with the tiny window's corner instead for resizing then.

1031982 commented 3 years ago

I know this is an old thread, but thank you Lalarian for your workaround. This was needed on my systems as well. Irony is that I'm running Windows 10. I'm guessing it might be a conflict with one of my other customizations.

xiaoxiaoflood commented 2 years ago

I'm also using Linux now and already removed the buggy resizer from Status Bar.