linux - Qt4: Window appears in the upper left corner on metacity -


i have problem window appearance in qt4 on metacity. initial problem window appearing under window, called clicking button. solved on compiz sending _net_active_window, on metacity still wasn't working. after hours of googling, tried this:

if (window -> isminimized()) {   window -> shownormal(); } else if (window -> ishidden()) {   window -> show(); }  //the code added, makes window appear above.  window ->setwindowflags(qt::windowstaysontophint); qt::windowflags flags = window->windowflags(); flags &= ~qt::windowstaysontophint; window->setwindowflags(flags);  window->setgeometry(window->geometry());  window -> activatewindow(); window->show(); window -> raise(); 

it workaround, makes window appear above. , problem occurs: if window shown , change focus window called , press button, window appears above on same place should. if close window , call again, appears in upper left corner. have idea why happening? in advance.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -