Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_window_prop.c
Log Message:
Patch from Tilman Sauerbeck to set the borderless hint w/o altering the window
functionality. This was causing borderless windows to be unmovable under some
window managers.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ecore_x_window_prop.c 23 Sep 2003 22:33:10 -0000 1.3
+++ ecore_x_window_prop.c 8 Oct 2003 20:33:30 -0000 1.4
@@ -428,18 +428,15 @@
void
ecore_x_window_prop_borderless_set(Ecore_X_Window win, int borderless)
{
- if (!borderless)
- XDeleteProperty(_ecore_x_disp, win, _ecore_x_atom_motif_wm_hints);
- else
- {
- const unsigned int data[5] =
- { 0x3, 0x0, 0x0, 0x2ada27b0, 0x2aabd6b0};
-
- ecore_x_window_prop_property_set(win,
+ unsigned int data[5] = {0};
+
+ data[0] = 2; /* just set the decorations hint! */
+ data[2] = !borderless;
+
+ ecore_x_window_prop_property_set(win,
_ecore_x_atom_motif_wm_hints,
_ecore_x_atom_motif_wm_hints,
32, (void *)data, 5);
- }
}
/**
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs