diff options
author | fluxgen <fluxgen> | 2004-09-16 10:10:37 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-09-16 10:10:37 (GMT) |
commit | 2c66db2ba0c9061d96e5057c919d4576f84a091c (patch) | |
tree | b0ec6351e33e0643aba9e3fc33bf0897101ff2cb /src/Screen.cc | |
parent | ff8dc9fb3f2c2873d9f8f77cca23597e1cd6fe78 (diff) | |
download | fluxbox_pavel-2c66db2ba0c9061d96e5057c919d4576f84a091c.zip fluxbox_pavel-2c66db2ba0c9061d96e5057c919d4576f84a091c.tar.bz2 |
cleaning, we dont create windows with XCreateWindow
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 9f5b07e..e06d071 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.cc,v 1.292 2004/09/12 14:56:18 rathnor Exp $ | 25 | // $Id: Screen.cc,v 1.293 2004/09/16 10:10:36 fluxgen Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -226,6 +226,14 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
226 | RootTheme(scrn, | 226 | RootTheme(scrn, |
227 | *resource.rootcommand)), | 227 | *resource.rootcommand)), |
228 | m_root_window(scrn), | 228 | m_root_window(scrn), |
229 | m_geom_window(m_root_window, | ||
230 | 0, 0, 10, 10, | ||
231 | false, // override redirect | ||
232 | true), // save under | ||
233 | m_pos_window(m_root_window, | ||
234 | 0, 0, 10, 10, | ||
235 | false, // override redirect | ||
236 | true), // save under | ||
229 | resource(rm, screenname, altscreenname), | 237 | resource(rm, screenname, altscreenname), |
230 | m_name(screenname), | 238 | m_name(screenname), |
231 | m_altname(altscreenname), | 239 | m_altname(altscreenname), |
@@ -307,40 +315,15 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
307 | menuTheme().frameFont().setAntialias(*resource.antialias); | 315 | menuTheme().frameFont().setAntialias(*resource.antialias); |
308 | 316 | ||
309 | 317 | ||
310 | // create geometry window | ||
311 | |||
312 | int geom_h = 10; | ||
313 | int geom_w = 100; // just initial, will be fixed in render | ||
314 | |||
315 | // create geometry window | ||
316 | |||
317 | int pos_h = 10; | ||
318 | int pos_w = 100; // just initial, will be fixed in render | ||
319 | |||
320 | XSetWindowAttributes attrib; | ||
321 | unsigned long mask = CWBorderPixel | CWColormap | CWSaveUnder; | ||
322 | attrib.border_pixel = winFrameTheme().border().color().pixel(); | ||
323 | attrib.colormap = rootWindow().colormap(); | ||
324 | attrib.save_under = true; | ||
325 | |||
326 | winFrameTheme().reconfigSig().attach(this);// for geom window | 318 | winFrameTheme().reconfigSig().attach(this);// for geom window |
327 | 319 | ||
328 | m_geom_window = | 320 | |
329 | XCreateWindow(disp, rootWindow().window(), | ||
330 | 0, 0, geom_w, geom_h, winFrameTheme().border().width(), rootWindow().depth(), | ||
331 | InputOutput, rootWindow().visual(), mask, &attrib); | ||
332 | geom_visible = false; | 321 | geom_visible = false; |
333 | geom_pixmap = 0; | 322 | geom_pixmap = 0; |
334 | |||
335 | renderGeomWindow(); | ||
336 | |||
337 | m_pos_window = | ||
338 | XCreateWindow(disp, rootWindow().window(), | ||
339 | 0, 0, pos_w, pos_h, winFrameTheme().border().width(), rootWindow().depth(), | ||
340 | InputOutput, rootWindow().visual(), mask, &attrib); | ||
341 | pos_visible = false; | 323 | pos_visible = false; |
342 | pos_pixmap = 0; | 324 | pos_pixmap = 0; |
343 | 325 | ||
326 | renderGeomWindow(); | ||
344 | renderPosWindow(); | 327 | renderPosWindow(); |
345 | 328 | ||
346 | // setup workspaces and workspace menu | 329 | // setup workspaces and workspace menu |