Commit 7b0a546b authored by Sergio Costas's avatar Sergio Costas

Now the window doesn't become maximized if it is enlarged to a big size

Now the guake mode doesn't do odd things when all terminus processes are killed and it is launched via DBus when pressing the hotkey in Gnome Shell
parent 6c9a3b94
## History of versions ##
* Version 0.9.0 (2017-10-12)
* Now the guake-style window won't get stuck in maximized mode when resized too big
* Now the guake mode works fine if all terminus sessions are killed and is relaunched via D-Bus
* Version 0.8.1 (2017-09-18)
* Fixed the install path when creating packages
* Fixed the gnome shell extension, now it works on gnome shell 3.24 and 3.26
......
pkgname=terminus
pkgver=0.8.1
pkgver=0.9.0
pkgrel=1
pkgdesc="A new terminal for XWindows
"
......
terminus (0.9.0-Debian1) sid; urgency=low
* Now the guake-style window won't get stuck in maximized mode when resized too big
* Now the guake mode works fine if all terminus sessions are killed and is relaunched via D-Bus
-- Sergio Costas Rodriguez <raster@rastersoft.com> Thu, 12 Oct 2017 23:55:00 +0200
terminus (0.8.1-Debian1) sid; urgency=low
* Fixed the install path when creating packages
......
......@@ -6,7 +6,7 @@ Build-Depends: build-essential, po-debconf, valac, libc6-dev, libatk1.0-dev, lib
Package: terminus
Architecture: any
Version: 0.8.1
Version: 0.9.0
Depends: libatk1.0-0, libglib2.0-0, libcairo2, libgtk-3-0, libpangocairo-1.0-0, libpango-1.0-0, libgdk-pixbuf2.0-0, libcairo-gobject2, libgee-0.8-2, libkeybinder-3.0-0, libvte-2.91-0, lib32z1, libgnutls30, libx11-6, libglib2.0-bin
Description: A new terminal for XWindows
.
terminus (0.9.0-Debian1) sid; urgency=low
* Now the guake-style window won't get stuck in maximized mode when resized too big
* Now the guake mode works fine if all terminus sessions are killed and is relaunched via D-Bus
-- Sergio Costas Rodriguez <raster@rastersoft.com> Thu, 12 Oct 2017 23:55:00 +0200
terminus (0.8.1-Debian1) sid; urgency=low
* Fixed the install path when creating packages
......
......@@ -6,7 +6,7 @@ Build-Depends: build-essential, po-debconf, valac, libc6-dev, libatk1.0-dev, lib
Package: terminus
Architecture: any
Version: 0.8.1
Version: 0.9.0
Depends: libatk1.0-0, libglib2.0-0, libcairo2, libgtk-3-0, libpangocairo-1.0-0, libpango-1.0-0, libgdk-pixbuf2.0-0, libcairo-gobject2, libgee-0.8-2, libkeybinder-3.0-0, libvte-2.91-0, libgnutls30, libx11-6, libglib2.0-bin
Description: A new terminal for XWindows
.
Name: terminus
Version: 0.8.1
Version: 0.9.0
Release: 1
License: Unknown/not set
Summary: A new terminal for XWindows
......
......@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "terminus")
set (RELEASE_NAME "terminus")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "0.8.1")
set (VERSION "0.9.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/Config.vala.base ${CMAKE_BINARY_DIR}/src/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "0.8.1")
set (VERSION "0.9.0")
add_definitions (${DEPS_CFLAGS})
link_libraries ( ${DEPS_LIBRARIES} )
link_directories ( ${DEPS_LIBRARY_DIRS} )
......
......@@ -19,7 +19,7 @@
using Gtk;
using Gee;
//project version = 0.8.1
//project version = 0.9.0
namespace Terminus {
......@@ -320,6 +320,8 @@ namespace Terminus {
private bool check_guake = false;
private Terminus.Base? guake_terminal;
private Terminus.Window? guake_window;
private bool ready;
private int extcall;
private bool tmp_launch_terminal;
private bool tmp_launch_guake;
......@@ -330,6 +332,8 @@ namespace Terminus {
public TerminusRoot(string[] argv) {
this.ready = false;
this.extcall = -1;
main_root = this;
this.guake_terminal = null;
this.guake_window = null;
......@@ -377,11 +381,12 @@ namespace Terminus {
this.create_window(true);
}
this.tmp_launch_guake = false;
Terminus.keybind_settings.changed.connect(this.keybind_settings_changed);
this.ready = true;
if (this.extcall != -1) {
show_hide_global(this.extcall);
}
}, () => {});
print("Entro en Gmain\n");
Gtk.main();
}
......@@ -508,6 +513,11 @@ namespace Terminus {
*mode = 2: hide if visible, show if hidden
*/
if (!this.ready) {
this.extcall = mode;
return;
}
if (Terminus.settings.get_boolean("enable-guake-mode") == false) {
return;
}
......
......@@ -56,7 +56,7 @@ namespace Terminus {
return this.get_display().get_monitor_at_window(this.get_window().get_effective_toplevel()).get_geometry().width;
#endif
}
private int get_monitor_height() {
#if GTK_3_20
return this.get_screen().get_height();
......@@ -76,7 +76,7 @@ namespace Terminus {
this.destroy.connect( (w) => {
this.ended(this);
});
if (terminal == null) {
this.terminal = new Terminus.Base();
} else {
......@@ -87,7 +87,7 @@ namespace Terminus {
this.terminal.new_window.connect( () => {
this.new_window();
});
this.show.connect_after( () => {
GLib.Timeout.add(500, () => {
this.present();
......@@ -97,7 +97,7 @@ namespace Terminus {
if (guake_mode) {
this.set_properties();
this.current_size = Terminus.settings.get_int("guake-height");
if (this.current_size < 0) {
this.current_size = this.get_monitor_height() * 3 / 7;
......@@ -108,6 +108,13 @@ namespace Terminus {
this.realize.connect_after( () => {
this.set_size();
});
this.window_state_event.connect( (event) => {
if ((event.new_window_state & Gdk.WindowState.MAXIMIZED) != 0) {
this.unmaximize();
this.set_size();
}
return false;
});
this.paned = new Gtk.Paned(Gtk.Orientation.VERTICAL);
this.paned.wide_handle = true;
this.paned.events = Gdk.EventMask.BUTTON_PRESS_MASK|Gdk.EventMask.BUTTON_RELEASE_MASK|Gdk.EventMask.POINTER_MOTION_MASK|Gdk.EventMask.LEAVE_NOTIFY_MASK;
......
......@@ -13,7 +13,7 @@ custom: terminus_gnome_shell/metadata.json share/gnome-shell/extensions/showTerm
*vapidir: src/vapidir
vala_binary: src/terminus
*version: 0.8.1
*version: 0.9.0
use_gresource: extras_gresource_xml
vala_vapi: checkwayland.vapi
*vala_package: posix
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment