Comments (11)
Hmm, it seems this only happens if another window is already open. If gf is the only window, is draws instantly. Some x11 event related probably?
from gf.
It's almost certainly ConfigureNotify
.
from gf.
What window manager are you using?
from gf.
I'm on Openbox 3.6.1
from gf.
I tried running gf on Openbox 3.6.1, and the window drew correctly without having to resize it -- have you changed any configuration settings that might affect this? I am not familiar with X11 programming; is there no guarantee the ConfigureNotify
message will be sent after creating a window? I'd rather not have to add a workaround if it isn't necessary.
from gf.
It appears ConfigureNotify
is not guaranteed to be sent on window creation:
https://tronche.com/gui/x/xlib/events/window-state-change/configure.html
Out of the functions listed, my guess would be that calling XRaiseWindow
is the most logical choice.
from gf.
A window is mapped and its position in the stacking order is changed by calling XMapRaised().
XMapRaised
is called here https://github.com/nakst/gf/blob/master/luigi.h#L3961 on the main window. Surely this should generate the ConfigureNotify
event?
from gf.
Could you try adding
XResizeWindow(ui.display, window->window, width + 1, height + 1);
after the call to XMapRaised
and see if makes a difference?
from gf.
It does work (even without the + 1
)
from gf.
It is related to me having window decorations disabled. I tried enabling them back, and then ConfigureNotify
arrives. An openbox bug maybe? I'll contact the devs.
If the xlib docs say that XMapRaised
should generate the ConfigureNotify
event, then it's probably them who should fix it, not you.
from gf.
This got fixed, by the way. I have no idea where or how, though..
from gf.
Related Issues (20)
- Hidden Files HOT 1
- FreeType Bitmap/Fixed Font Crashes at Startup with "Floating point exception"/Garbled Text HOT 6
- Cannot add breakpoint on future shared library HOT 3
- Print the name of the file I'm debugging in a titlebar (or somewhere) HOT 2
- Incorrect syntax highlighting for multi-line macros
- [feature request] Horizontal scrollbars HOT 4
- Automatic bitmap viewing
- (feature request): add the ability to select and copy text from the code & console output views (i.e., `UICode` elements) HOT 7
- Incorrect syntax highlight for multi-line comments
- Getting GVIM error when running gf2 under WSL2 on Windows 11 HOT 4
- Petition to make the ability to select text for copy/pasting the DEFAULT behavior of gf HOT 7
- Inspect line mode fails to parse variables that contain a number in their name
- feature request: hover to inspect variables.
- Please provide a release version HOT 1
- When trying to use the `[pipe]` feature I get a segfault HOT 1
- GDB `define` command doesn't work HOT 2
- Debugging with multiple inferiors HOT 1
- Error after installing extensions HOT 1
- Show hex value instead of decimal in Locals tab HOT 2
- Support for loading SVD files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gf.