TualatriX
October 7th, 2007, 12:43 PM
Hello all the developer of Compiz:
I've found a "bug" of Compiz Fusion Window Manager
If an application ask for create a window, its height is the screen resolution's height, for example, it's 800px(My screen resolution is 1280x800).
When this application create the window, its height will really be 800px, so it will cover the gnome-panel, sometimes will be dock.
See the picture on attach files-1
But when I use Metacity instead of Compiz Fusion, the condition isn't be this.
Althought the requested window's height is 800, but It is smart, the window don't cover the gnome-panel, it is maximize!
See the picture attach file-2
Which style do you like? I like the Metacity style.
As far as I know, Windows and OS X is the same style of Metacity. Although they don't create the really size of application asked, I think it's more Humanized, doesn't it?
the example gtk application below.
#include <gtk/gtk.h>
#include <gdk/gdk.h>
int main(int argc,char **argv)
{
GdkScreen *ServerScreen;
GtkWidget *window;
GtkWidget *label;
gint resolution_height,resolution_width;
gtk_init(&argc,&argv);
ServerScreen=gdk_screen_get_default();
resolution_height=gdk_screen_get_height(ServerScre en);
resolution_width=gdk_screen_get_width(ServerScreen );
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(window),102 4,resolution_height);
g_signal_connect(G_OBJECT(window),"destroy",gtk_main_quit,NULL);
label=gtk_label_new(NULL);
gtk_label_set_markup(GTK_LABEL(label),"haha");
gtk_container_add(GTK_CONTAINER(window),label);
gtk_widget_show_all(window);
gtk_main();
return 0;
}
I've found a "bug" of Compiz Fusion Window Manager
If an application ask for create a window, its height is the screen resolution's height, for example, it's 800px(My screen resolution is 1280x800).
When this application create the window, its height will really be 800px, so it will cover the gnome-panel, sometimes will be dock.
See the picture on attach files-1
But when I use Metacity instead of Compiz Fusion, the condition isn't be this.
Althought the requested window's height is 800, but It is smart, the window don't cover the gnome-panel, it is maximize!
See the picture attach file-2
Which style do you like? I like the Metacity style.
As far as I know, Windows and OS X is the same style of Metacity. Although they don't create the really size of application asked, I think it's more Humanized, doesn't it?
the example gtk application below.
#include <gtk/gtk.h>
#include <gdk/gdk.h>
int main(int argc,char **argv)
{
GdkScreen *ServerScreen;
GtkWidget *window;
GtkWidget *label;
gint resolution_height,resolution_width;
gtk_init(&argc,&argv);
ServerScreen=gdk_screen_get_default();
resolution_height=gdk_screen_get_height(ServerScre en);
resolution_width=gdk_screen_get_width(ServerScreen );
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(window),102 4,resolution_height);
g_signal_connect(G_OBJECT(window),"destroy",gtk_main_quit,NULL);
label=gtk_label_new(NULL);
gtk_label_set_markup(GTK_LABEL(label),"haha");
gtk_container_add(GTK_CONTAINER(window),label);
gtk_widget_show_all(window);
gtk_main();
return 0;
}