OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

raise windows in compositeviewer


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Meldryt
User


Joined: 02 Mar 2016
Posts: 59

PostPosted: Mon Jan 08, 2018 2:56 pm    Post subject:
raise windows in compositeviewer
Reply with quote

My compositeviewer has two views, each containing a osgWidget::Canvas (window).
When i press a widget inside the first window, the second window should be restored (if minimized) and put in foreground.
The restoring works but the second window stays in background.

Code:

osg::ref_ptr<osgViewer::GraphicsWindow> pWindow = windows[1];
int x;
int y;
int width;
int height;
pWindow->getWindowRectangle(x, y, width, height);
pWindow->setWindowDecoration(true);
pWindow->setWindowRectangle(x, y, width, height);
pWindow->grabFocus();


edit: this only works if i remove and create a new view and add it to the compositeviewer, each time i press the button.

edit2: i changed the title, because what i'm actually trying to achieve is to call GraphicsWindowX11::raiseWindow(), but it seems to get stuck inside the function.

edit3: issue has been solved with osg 3.4.0

_________________
OSG Version: 3.4.1
OS: OpenSuse Leap 42.1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Where can i find the windows binaries peter_k General 2 Thu May 31, 2018 12:19 pm View latest post
No new posts Building OpenSceneGraph-3.6.0 on Wind... ravidavi Build system [build] 5 Thu Apr 19, 2018 4:44 pm View latest post
No new posts Memory problems in Windows/Visual Studio markja General 6 Thu Apr 19, 2018 3:20 pm View latest post
No new posts Cross-platform examples for Linux, ma... kornerr Announcement [ANN] 3 Mon Apr 09, 2018 9:36 am View latest post
No new posts CompositeViewer Bug with Scroll Events Daniel Emminizer, Code... General 1 Tue Apr 03, 2018 3:21 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP