Page Menu
Home
Search
Configure Global Search
Log In
Files
F4703
x11_maximized.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Campbell Barton (campbellbarton)
Nov 13 2013, 1:18 PM
Size
1 KB
Subscribers
None
x11_maximized.patch
View Options
Index: intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/intern/ghost/intern/GHOST_WindowX11.cpp,v
retrieving revision 1.18
diff -u -p -u -r1.18 GHOST_WindowX11.cpp
--- intern/ghost/intern/GHOST_WindowX11.cpp 20 Mar 2007 04:19:30 -0000 1.18
+++ intern/ghost/intern/GHOST_WindowX11.cpp 14 Apr 2007 21:15:02 -0000
@@ -164,6 +164,21 @@ GHOST_WindowX11(
atom, atom, 32,
PropModeReplace, (unsigned char *) &hints, 4);
}
+ } else {
+ /* Maximize the window */
+ Atom atom_maxv = XInternAtom(m_display, "_NET_WM_STATE_MAXIMIZED_VERT", False);
+ Atom atom_maxh = XInternAtom(m_display, "_NET_WM_STATE_MAXIMIZED_HORZ", False);
+ Atom atom_wmstate = XInternAtom(m_display, "_NET_WM_STATE", False);
+
+ if (atom_maxv==None || atom_maxh==None || atom_wmstate==None) {
+ GHOST_PRINT("Could not intern X atom for _NET_WM.\n");
+ } else {
+ XChangeProperty( m_display, m_window, atom_wmstate,
+ ((Atom)4), 32, PropModeReplace, (unsigned char*)&atom_maxv, 1 );
+
+ XChangeProperty( m_display, m_window, atom_wmstate,
+ ((Atom)4), 32, PropModeReplace, (unsigned char*)&atom_maxh, 1 );
+ }
}
// Create some hints for the window manager on how
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/02/a7b8ab4e9370313e84eacc20fccb
Event Timeline
Log In to Comment