67220
来自「神经网络昆斯林的新闻组分类2006」· 代码 · 共 54 行
TXT
54 行
Path: cantaloupe.srv.cs.cmu.edu!magnesium.club.cc.cmu.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!europa.eng.gtefsd.com!howland.reston.ans.net!ira.uka.de!math.fu-berlin.de!cs.tu-berlin.de!athene!badingFrom: bading@cs.tu-berlin.de (Tobias 'Doping' Bading)Newsgroups: comp.windows.xSubject: Re: Forcing a window manager to accept specific coordinates for a windowDate: 23 Apr 1993 08:52:32 GMTOrganization: Technical University of Berlin, GermanyLines: 36Distribution: worldMessage-ID: <BADING.93Apr23105229@athene.cs.tu-berlin.de>References: <C5r25y.HFz@cs.columbia.edu> <BADING.93Apr21134939@athene.cs.tu-berlin.de> <C5u667.Ln8@boulder.parcplace.com> <1r5l8g$bub@wsinfo03.win.tue.nl>NNTP-Posting-Host: athene.cs.tu-berlin.deMime-Version: 1.0Content-Type: text/plain; charset=iso-8859-1Content-Transfer-Encoding: 8bitIn-reply-to: rcb5@wsinfo03.win.tue.nl's message of 22 Apr 1993 10:33:20 +0200In article <1r5l8g$bub@wsinfo03.win.tue.nl> rcb5@wsinfo03.win.tue.nl (Richard Verhoeven) writes: Sorry, but olwm and tvtwm don't do it. They place the title at that position and the window at a position below it. This becomes a problem when you want a program to be able to save its current configuration and restore is later. Currently, my solution is: XCreateWindow(...); XSetWMProperties(..); XMapWindow(...); XFlush(...); XMoveWindow(...); It works with olwm, but is less than elegant. All this leaves me wondering if I'm overlooking something obvious. Richard.I know that the mwm has an resource to specify if positions are to be used forthe border of a window or for the "user" window. Maybe other window managershave similar options.Another way to figure out the difference between the "user" window positionand the window manager decoration window position is to subtract theirpositions. You just have to use XQueryTree and remember that the window managerdecorations window is the parent of your window. Unfortunately, you can onlyfigure out the decoration width and height after the window has been mappedthis way.Greeting, Tobias (bading@cs.tu-berlin.de)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?