Re: Main window position

Anders Olofsson <[email protected]> Thu, 29 Dec 2011 14:19:27 +0100
Newsgroups gmane.network.licq.general
Message-ID <[email protected]>
On 2011-12-29 10:13, George L. Yermulnik wrote:
> Hello!
>
> On Thu, 22 Dec 2011 at 11:49:58 (+0200), George L. Yermulnik wrote:
>
>>>> If it's not too bad-mannered, I'd like to ask you to take a look at
>>>> another issue I have here on my sendbox. It's not a fault or something
>>>> like that, but is very annoying: after upgrading from 1.3.x to 1.5.x
>>>> each time I open the main contact list window from a systray it goes up
>>>> vertically for exactly half a centimeter. Maybe it's not because of any
>>>> Licq components. So I'm just asking for your opinion =)
>
>>> Did you use Qt4-Gui with 1.3.x so you can tell if the problem appeared
>>> with the new Licq version and not the switch to Qt4?
>
>> I can't recall which Qt version I had been using before upgrading to
>> 1.5.x =( That happened along with installing my new workstation from
>> scratch. But I surely remember that this behaviour appeared exactly
>> after upgrading to 1.5.0.
>
>>> Which window manager are you using?
>
>> Enlightenment (E16) 1.0.10

Never used it. I'll install it and see if I get the same behavior.


>>> Does it happen if you just minimize and restore it normally to the taskbar?
>
>> Nope, it doesn't. It happens only when left-clicking on Licq tray icon
>> to show/hide main window.
>> I've noticed another "side effect": with main window opened first tray
>> icon click sets window to sticky state and only the second click hides
>> the window.
>> Log message is:
>> <timestamp>  [INF] qt4 gui: Setting Sticky state of window 0x28000ca to true
>
>> It's not that critical and I almost got used to this behavior. So If I'm
>> the only one reporting such a "bug", guess it doesn't worth your
>> attention as it might be because of some misconfiguration of my WM or
>> anything like that =)

The logic when clicking the system tray is to hide the main window only 
if it is already the active window. So if the main window is visible, 
but not active, it will only be raised. The sticky flag is always set 
when showing regardless if the window was hidden before.

Do you need to click twice even when the main window already is in focus 
or is there something else in focus when you see this behavior?


If you disable the "Sticky main window" setting, does the main window 
still get placed too high?


>>>> And a feature request =) Is it possible to add possibility to toggle
>>>> main contact list window state (open/close) via licq_fifo?

I've added fifo commands "ui_showuserlist" and "ui_hideuserlist" as new 
features for future Licq 1.7.0.


>> And one more "feature" request =)
>> Can you please add "//IGNORE" for `tocode' of iconv_open() in src/licq-osd.cpp ?
>> It should make iconv silently discard unconvertable chars instead of
>> failing itself at all.

Fixed, also for 1.7.0.


> I catched some kind of "crash" with my mailbox, so I'd like to ask if I
> missed your answer or there were no answer yet? =)

No, you didn't miss anything. I was away during christmas and just 
forgot this thread so it's a good thing you reminded me.

/Anders