octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI - X Error: BadMatch


From: Torsten
Subject: Re: GUI - X Error: BadMatch
Date: Mon, 28 Jan 2013 06:37:24 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 27.01.2013 23:34, marco atzeri wrote:
> On 1/27/2013 11:14 PM, Daniel J Sebald wrote:
>>
>> Wait, I think I see what the problem is.  The overloaded function
>> setFocus() will set the focus "if this widget or one of its parents is
>> the active window".  Perhaps the two lines in that change set need to be
>> switched from:
>>
>>      4.11 +  setFocus ();
>>      4.12 +  activateWindow ();
>>
>> to
>>
>>      activateWindow ();
>>      setFocus ();
>>
>> Perhaps without an "activateWindow ()" the Qt widget doesn't yet have
>> it's focus reason validated.  Just guessing, but it's worth a try.
>>
>> Dan
> 
> 
> it makes no difference
> 
> Marco
> 

I have seen the same messages during the work on my patch. They appeared
when moving a docked widget into a new position because the widgets
become floating and therefore normal windows during that. The solution
was to check if a widget is floating before setting the focus in the
handlers of the visibilityChanged signal.

At the moment I have no idea why this happens at start up. Are your
widgets floating or docked at startup and do the messages also appear
later when you are moving the widgets?

Torsten


reply via email to

[Prev in Thread] Current Thread [Next in Thread]