Re: my Gtk3 application starts vertically maximized and snap-right
"o." <[email protected]> Thu, 8 Feb 2018 10:26:34 +0200
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============3623613630964824664== Content-Type: multipart/alternative; boundary="------------1AB5F348DF5553D4DB6F0732" This is a multi-part message in MIME format. --------------1AB5F348DF5553D4DB6F0732 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Tom Sheffler wrote: > I have recently compiled a Gtk3 application of my own design to > RaspberryPi Stretch. It runs fine. However, when I launch the > application it is vertically-maximized. (It is also snapped to the > right edge of the screen.) > > I would prefer the application to start at its "natural" size. I have > tried setting gtk_window_set_default_size() and I've also tried using > gtk_window_set_geometry_hints() to suggest the starting size. > > Questions: > - do you know how I can ask for the starting size to be something I > specify? i have no experience in programing, but generally gtk3 applications should remember the last window position? so just try to resize (unmaximize) it once, maybe that's enough? if you really think this is openbox related, you should show us your rc.xml, usually in ~/.config/openbox. > > I apologize if this is a simple question. This is new territory for me. > > Thanks, > Tom > > > > _______________________________________________ > openbox mailing list > [email protected] > http://icculus.org/mailman/listinfo/openbox --------------1AB5F348DF5553D4DB6F0732 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body text="#333333" bgcolor="#FFFFCC"> Tom Sheffler wrote:<br> <blockquote type="cite" cite="mid:CAMBtMcs1_9J08WUis0ZyhDqNoXC5t-cZFQJum7ECJBmGD6ieZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"> <meta http-equiv="Context-Type" content="text/html; charset=UTF-8"> <div dir="ltr">I have recently compiled a Gtk3 application of my own design to RaspberryPi Stretch. It runs fine. However, when I launch the application it is vertically-maximized. (It is also snapped to the right edge of the screen.) <div><br> </div> <div>I would prefer the application to start at its "natural" size. I have tried setting gtk_window_set_default_size() and I've also tried using gtk_window_set_geometry_hints(<wbr>) to suggest the starting size.</div> <div><br> </div> <div>Questions:</div> <div>- do you know how I can ask for the starting size to be something I specify?</div> </div> </blockquote> i have no experience in programing, but generally gtk3 applications should remember the last window position?<br> so just try to resize (unmaximize) it once, maybe that's enough?<br> <br> if you really think this is openbox related, you should show us your rc.xml, usually in ~/.config/openbox.<br> <br> <br> <blockquote type="cite" cite="mid:CAMBtMcs1_9J08WUis0ZyhDqNoXC5t-cZFQJum7ECJBmGD6ieZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"> <div dir="ltr"> <div><br> </div> <div>I apologize if this is a simple question. This is new territory for me.</div> <div><br> </div> <div>Thanks,</div> <div>Tom</div> <div><br> </div> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ openbox mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a></pre> </blockquote> <br> </body> </html> --------------1AB5F348DF5553D4DB6F0732-- --===============3623613630964824664== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kb3BlbmJveCBt YWlsaW5nIGxpc3QKb3BlbmJveEBpY2N1bHVzLm9yZwpodHRwOi8vaWNjdWx1cy5vcmcvbWFpbG1h bi9saXN0aW5mby9vcGVuYm94 --===============3623613630964824664==--