New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Position of the new chrome-style status bar

Report bugs here

Re: Position of the new chrome-style status bar

Postby Tvangeste » Thu Jul 07, 2011 3:20 pm

At any rate, I'm rewriting this code now to make it absolutely, 200% robust. And to do that I'm discarding the initial idea to use a separate standalone small window.

It worked great on Windows, but on Linux it is just cannot be reliably done, period. Every other window manager is doing their own crazy things and optimization, and the application is just not receiving move and resize events immediately, but only after the fact. So I could move my window for 2 minutes all over the screen, and GoldenDict won't receive a single move event. So that small status bar window would look like out of place, staying at the old location.

Also, to my surprise, calculating the window location is much trickier on X11 as I thought.

So, instead of separate window, I'm going to use a widget and place it on top of the actual content. That way, there will be no problems with compositing window managers, no problems with location calculation and sync-up. So, this is going to be much more reliable and cross-platform.

The only drawback is that we won't be able to paint the status bar outside of the main window, which is sometimes desirable. For example, take a look at Chrome statusbar on Windows. When you move your mouse close to the status bar, it gets out of the way, possibly moving out of the window. 8-)

But even chrome devs decided that it's not worth the trouble to do the same on X11. On X11 they also use internal widget.
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Position of the new chrome-style status bar

Postby betwee » Thu Jul 07, 2011 3:26 pm

Great, I trust your decisions, :D.
betwee
 
Posts: 33
Joined: Tue May 17, 2011 8:10 am

Re: Position of the new chrome-style status bar

Postby Tvangeste » Sat Jul 09, 2011 12:01 pm

betwee wrote:Great, I trust your decisions, :D.

I just re-implemented the status bar, update to the latest git version and check it out. Your problems should go away. :)
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Position of the new chrome-style status bar

Postby betwee » Sat Jul 09, 2011 3:36 pm

I can't confirm it yet, :(. Now the status bar is always at the wrong place, in the middle of the screen. It goes to the bottom, though, when I hover the mouse over a URL. It doesn't help turning visual effects off or on. The Compiz version that my system uses is 0.8.4.
Attachments
sample.gif
sample.gif (25.31 KiB) Viewed 11011 times
betwee
 
Posts: 33
Joined: Tue May 17, 2011 8:10 am

Re: Position of the new chrome-style status bar

Postby Tvangeste » Sat Jul 09, 2011 5:12 pm

betwee wrote:I can't confirm it yet, :(. Now the status bar is always at the wrong place, in the middle of the screen.

Holy Jesus Batman! :) That was an interesting "reliability" improvement!

I removed too much code during the cleanup phase and didn't notice the regression. I just pushed the fix, please pull and test.
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Position of the new chrome-style status bar

Postby betwee » Sun Jul 10, 2011 9:47 am

Tvangeste wrote:Holy Jesus Batman! :) ... I just pushed the fix, please pull and test.


Yeah, that was it, Tvangeste! Fantastic work! :D
betwee
 
Posts: 33
Joined: Tue May 17, 2011 8:10 am

Previous

Return to Bugs

Who is online

Users browsing this forum: No registered users and 29 guests

cron